00001
00002
00003
00004
00005
00006
00007
00008
00009 #ifndef NODE_H_
00010 #define NODE_H_
00011
00012 #include <string>
00013 #include <sstream>
00014 #include <map>
00015
00016 using namespace std;
00017
00018 namespace cosi
00019 {
00020
00035 class Interface : public map<string,string> {
00036 public:
00037 Interface( ) ;
00038 ~Interface( ) ;
00040 void Add(string pName,string pType) ;
00042 void Add(string pName , string pType , int pCount ) ;
00044 bool HasPortType( string pType ) ;
00045 bool HasPortName( string pName ) ;
00046 private:
00047 };
00048
00049
00065 class Node : public Interface
00066 {
00067 public:
00068 Node();
00069 virtual ~Node();
00071 void SetName( string pName ) ;
00073 string GetName( ) ;
00075 void SetType( string Type ) ;
00077 string GetType( ) ;
00078
00079 private:
00080 string mName ;
00081 string mType ;
00082 };
00083
00084 }
00085
00086 #endif