00001
00002
00003
00004
00005
00006
00007
00008
00024 #ifndef FACTORY_H_
00025 #define FACTORY_H_
00026
00027 #include <string>
00028 #include <vector>
00029 #include <list>
00030 #include "IdGraph.h"
00031 #include "Network.hpp"
00032
00033 using namespace std ;
00034
00035 namespace cosi {
00036
00037 class Factory {
00038 public:
00039 Factory();
00040 virtual ~Factory();
00041
00042
00043 void AllocateNetwork( string pType );
00044 void SetNetworkName(string pName);
00045
00046 void AddVertex(Vertex pV);
00047 void AddVertex(Vertex pV,string pName);
00048 void AddEdge( Edge pE ) ;
00049 void AddEdge( Edge pE , string pName) ;
00050
00051 void SetLabelMapEntry(string pMapName , Vertex pV , list<string> pString , list<int> pInt , list<double> pDouble );
00052 void SetLabelMapEntry(string pMapName , Edge pE , list<string> pString , list<int> pInt , list<double> pDouble );
00053
00054
00055
00056 IdGraph* GetNetwork( );
00057
00058 private:
00059
00060 IdGraph* mNetwork;
00061
00062 };
00063
00064 }
00065
00066 #endif