#include <aims/io/aimsGraphW.h>
|  | 
|  | AimsGraphWriter (const std::string &filename) | 
|  | 
| virtual | ~AimsGraphWriter () | 
|  | 
| virtual void | writeElements (Graph &g, SavingMode newmode=Keep, SavingMode oldmode=Keep, bool saveOnlyModified=false) | 
|  | Saves elements contained in the graph.  More... 
 | 
|  | 
| const ElementInfo & | elementInfo () const | 
|  | 
| ElementInfo & | elementInfo () | 
|  | 
| template<> | 
| bool | isEmpty (const carto::Volume< short > &obj) | 
|  | 
| template<> | 
| bool | isEmpty (const carto::Volume< int32_t > &obj) | 
|  | 
|  | Process () | 
|  | Attempts to read the header of filenameand, if successful, calls theoperator()of the process \process.  More...
 | 
|  | 
| virtual | ~Process () | 
|  | 
| void | registerProcessType (const std::string &objType, const std::string &dataType, ProcFunc procFunc) | 
|  | Registers the process to call on a given (object type, data type) couple (just fills the map)  More... 
 | 
|  | 
| bool | execute (const std::string &filename) | 
|  | Executes the process on the object / data type found in the given file.  More... 
 | 
|  | 
| bool | execute (Finder &f, const std::string &filename) | 
|  | Same as above but the header has already been read (or hand-made to fake it!)  More... 
 | 
|  | 
| const std::map< std::string, std::map< std::string, ProcFunc > > & | processTypes () const | 
|  | Query registered process types.  More... 
 | 
|  | 
| void | setReadOptions (carto::Object options) | 
|  | Set reading options.  More... 
 | 
|  | 
Definition at line 55 of file aimsGraphW.h.
 
◆ SavingMode
| Enumerator | 
|---|
| Keep |  | 
| Global |  | 
| Local |  | 
Definition at line 58 of file aimsGraphW.h.
 
 
◆ AimsGraphWriter()
      
        
          | aims::AimsGraphWriter::AimsGraphWriter | ( | const std::string & | filename | ) |  | 
      
 
 
◆ ~AimsGraphWriter()
  
  | 
        
          | virtual aims::AimsGraphWriter::~AimsGraphWriter | ( |  | ) |  |  | virtual | 
 
 
◆ defaultTakeObject()
template<class T > 
  
  | 
        
          | bool aims::AimsGraphWriter::defaultTakeObject | ( | Process & | p, |  
          |  |  | const std::string & | , |  
          |  |  | Finder & | f |  
          |  | ) |  |  |  | static | 
 
 
◆ elementInfo() [1/2]
◆ elementInfo() [2/2]
  
  | 
        
          | const ElementInfo& aims::AimsGraphWriter::elementInfo | ( |  | ) | const |  | inline | 
 
 
◆ isEmpty() [1/3]
template<> 
      
        
          | bool aims::AimsGraphWriter::isEmpty | ( | const carto::Volume< int32_t > & | obj | ) |  | 
      
 
 
◆ isEmpty() [2/3]
template<> 
      
        
          | bool aims::AimsGraphWriter::isEmpty | ( | const carto::Volume< short > & | obj | ) |  | 
      
 
 
◆ isEmpty() [3/3]
template<typename T > 
  
  | 
        
          | bool aims::AimsGraphWriter::isEmpty | ( | const T & | obj | ) |  |  | static | 
 
 
◆ writeElements()
Saves elements contained in the graph. 
Elements must be referred by the aims_objects_table map. Input graph g is not const since some of the graph attributed are updated. Hence you must always call writeElements() before saving the graph structure (using a regular GraphWriter) 
- Todo:
- save only some objects  - save only modified objects  
- newmode saving mode of "new" objects (those created after loading)
- oldmode saving mode of already existing (loaded) objects
- saveOnlyModified : if true, saves only objects in graph elements
- with a modification flag (attribute "modified" set to true) 
 
 
◆ ObjectWrapper
The documentation for this class was generated from the following files: