18 class PortInvalid :
public runtime_error,
public domain_error {
23 PortInvalid(
const string& whatArg) : runtime_error(whatArg), domain_error(whatArg){
24 cerr <<
"EXCEPTION PortInvalid -> " << whatArg << endl;
32 typedef enum{Input,Output}
Type;
40 Port():labl(),_type(),_obs(){}
41 Port(
const string & label,Type type):labl(label),_type(type),_obs(false)
43 Port(
const string & label,Type type,
bool observable):labl(label),_type(type),_obs(observable)
47 const string &
label()
const {
return labl; }
48 Type
type()
const {
return _type; }
Port(const string &label, Type type, bool observable)
PortInvalid(const string &whatArg)
Port(const string &label, Type type)
#define require(Exception, expr, message)
Namespace of the Diades project.
std::ostream & operator<<(std::ostream &os, const Identifier &identifier)
bool isObservable() const
const string & label() const
bool operator==(const Port &port) const
bool operator!=(const Port &port) const