1.1 --- a/mapstorage.h Thu Jul 28 19:09:39 2005 +0000
1.2 +++ b/mapstorage.h Fri Jul 29 12:01:37 2005 +0000
1.3 @@ -3,7 +3,8 @@
1.4 #ifndef MAPSTORAGE_H
1.5 #define MAPSTORAGE_H
1.6
1.7 -#include <all_include.h>
1.8 +#include "all_include.h"
1.9 +#include "xymap.h"
1.10
1.11 ///Class MapStorage is responsible for storing
1.12 ///NodeMaps and EdgeMaps that can be shown later
1.13 @@ -18,7 +19,11 @@
1.14 {
1.15 public:
1.16
1.17 - Graph &g;
1.18 + Graph graph;
1.19 + XYMap<Graph::NodeMap<double> > coords;
1.20 +
1.21 + bool modified;
1.22 + std::string file_name;
1.23
1.24 ///Stores double type NodeMaps
1.25 std::map< std::string,Graph::NodeMap<double> * > nodemap_storage;
1.26 @@ -39,7 +44,9 @@
1.27 ///for different visualization attributes
1.28 ///
1.29 ///\param graph is the graph for which the maps are stored in this object.
1.30 - MapStorage(Graph &);
1.31 + MapStorage();
1.32 +
1.33 + ~MapStorage();
1.34
1.35 ///Adds given map to storage. A name and the map itself has to be provided.
1.36 ///\param name is the name of map
1.37 @@ -92,6 +99,11 @@
1.38
1.39 ///This function sets a default base value for the newly created node
1.40 void initMapsForEdge(Graph::Edge);
1.41 +
1.42 + void readFromFile(const std::string &);
1.43 + void writeToFile(const std::string &);
1.44 +
1.45 + void clear();
1.46 };
1.47
1.48 #endif //MAPSTORAGE_H