PaCO++  0.05
PaCO++_types.h
Go to the documentation of this file.
00001 #ifndef PACO_EXCEPTION_IS_DEFINED
00002 #define PACO_EXCEPTION_IS_DEFINED
00003 
00004 #include <PaCO++.h>
00005 #include <string>
00006 
00007 using namespace std;
00008 
00009 // A constant
00010 extern PaCO::PacoTopology_t PacoTopologySeq;
00011 
00012 // Exception declaration
00013 class InvalidArgument
00014 {
00015 public:
00016   string msg;
00017   InvalidArgument(string m) : msg(m) {}
00018 };
00019 
00020 class BadWayString
00021 {
00022  public:
00023   string bad_way;
00024   BadWayString(string way) {bad_way = way;}
00025 };
00026 
00027 class BadWaySetStringDistribConfig : public BadWayString
00028 {
00029  public:
00030   int ret_in;
00031   int ret_out;
00032   BadWaySetStringDistribConfig(string way, int retin, int retout) : BadWayString(way) 
00033     {
00034       ret_in = retin;
00035       ret_out = retout;
00036     }
00037 };
00038 
00039 #endif