PaCO++  0.05
PaCO++_types.h
Go to the documentation of this file.
1 #ifndef PACO_EXCEPTION_IS_DEFINED
2 #define PACO_EXCEPTION_IS_DEFINED
3 
4 #include <PaCO++.h>
5 #include <string>
6 
7 using namespace std;
8 
9 // A constant
11 
12 // Exception declaration
14 {
15 public:
16  string msg;
17  InvalidArgument(string m) : msg(m) {}
18 };
19 
21 {
22  public:
23  string bad_way;
24  BadWayString(string way) {bad_way = way;}
25 };
26 
28 {
29  public:
30  int ret_in;
31  int ret_out;
32  BadWaySetStringDistribConfig(string way, int retin, int retout) : BadWayString(way)
33  {
34  ret_in = retin;
35  ret_out = retout;
36  }
37 };
38 
39 #endif
PaCO::PacoTopology_t PacoTopologySeq
Definition: PaCO++_src.cc:5
string bad_way
Definition: PaCO++_types.h:23
InvalidArgument(string m)
Definition: PaCO++_types.h:17
BadWayString(string way)
Definition: PaCO++_types.h:24
BadWaySetStringDistribConfig(string way, int retin, int retout)
Definition: PaCO++_types.h:32