COIN-OR::LEMON - Graph Library

Changeset 53:e73d7540bd24 in glemon-0.x for mapstorage.h


Ignore:
Timestamp:
07/29/05 14:01:37 (15 years ago)
Author:
Akos Ladanyi
Branch:
gui
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk/gui@2111
Message:

added support for saving files

File:
1 edited

Legend:

Unmodified
Added
Removed
  • mapstorage.h

    r31 r53  
    44#define MAPSTORAGE_H
    55
    6 #include <all_include.h>
     6#include "all_include.h"
     7#include "xymap.h"
    78
    89///Class MapStorage is responsible for storing
     
    1920public:
    2021
    21   Graph &g;
     22  Graph graph;
     23  XYMap<Graph::NodeMap<double> > coords;
     24
     25  bool modified;
     26  std::string file_name;
    2227
    2328  ///Stores double type NodeMaps
     
    4045  ///
    4146  ///\param graph is the graph for which the maps are stored in this object.
    42   MapStorage(Graph &);
     47  MapStorage();
     48
     49  ~MapStorage();
    4350
    4451  ///Adds given map to storage. A name and the map itself has to be provided.
     
    93100  ///This function sets a default base value for the newly created node
    94101  void initMapsForEdge(Graph::Edge);
     102
     103  void readFromFile(const std::string &);
     104  void writeToFile(const std::string &);
     105
     106  void clear();
    95107};
    96108
Note: See TracChangeset for help on using the changeset viewer.