diff -r ddd2ee3406e6 -r e73d7540bd24 mapstorage.h --- a/mapstorage.h Thu Jul 28 19:09:39 2005 +0000 +++ b/mapstorage.h Fri Jul 29 12:01:37 2005 +0000 @@ -3,7 +3,8 @@ #ifndef MAPSTORAGE_H #define MAPSTORAGE_H -#include +#include "all_include.h" +#include "xymap.h" ///Class MapStorage is responsible for storing ///NodeMaps and EdgeMaps that can be shown later @@ -18,7 +19,11 @@ { public: - Graph &g; + Graph graph; + XYMap > coords; + + bool modified; + std::string file_name; ///Stores double type NodeMaps std::map< std::string,Graph::NodeMap * > nodemap_storage; @@ -39,7 +44,9 @@ ///for different visualization attributes /// ///\param graph is the graph for which the maps are stored in this object. - MapStorage(Graph &); + MapStorage(); + + ~MapStorage(); ///Adds given map to storage. A name and the map itself has to be provided. ///\param name is the name of map @@ -92,6 +99,11 @@ ///This function sets a default base value for the newly created node void initMapsForEdge(Graph::Edge); + + void readFromFile(const std::string &); + void writeToFile(const std::string &); + + void clear(); }; #endif //MAPSTORAGE_H