|
core/NodeLinkLibrary.hGo to the documentation of this file.00001 //============================================================================ 00002 // Author : Alessandro Pinto <apinto@eecs.berkeley.edu> 00003 // University of California, Berkeley 00004 // 545 Cory Hall, Berkeley, CA 94720 00005 // Copyright : See COPYING file that comes with this distribution 00006 //============================================================================ 00007 00008 #ifndef NODELINKLIBRARY_H_ 00009 #define NODELINKLIBRARY_H_ 00010 00011 #include <set> 00012 #include <map> 00013 #include <string> 00014 #include "Node.h" 00015 #include "Link.h" 00016 00017 using namespace std; 00018 00019 namespace cosi { 00020 00035 class NodeLinkLibrary { 00036 public: 00037 NodeLinkLibrary(); 00038 NodeLinkLibrary(string pName); 00039 string GetName(); 00040 void SetName(string pName); 00041 virtual ~NodeLinkLibrary(); 00042 void AddNode(Node pN); 00043 void AddLink(Link pL); 00044 void AddBiLink(string pName ,Link pL1, Link pL2); 00045 void AddBiLink(BiLink pL); 00046 00047 private: 00048 string mName; 00049 map< string , Node > mNodes; 00050 map< string , Link > mLinks; 00051 map< string , BiLink> mBiLinks; 00052 }; 00053 00054 } 00055 00056 #endif /*NODELINKLIBRARY_H_*/ Generated on Sun Sep 7 18:37:42 2008 for COSI by 1.5.4 |