#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 () |
|
| Process () |
| Attempts to read the header of filename and, if successful, calls the operator() of the 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 & |
|
|
) |
| |
|
static |
◆ elementInfo() [1/2]
const ElementInfo& aims::AimsGraphWriter::elementInfo |
( |
| ) |
const |
|
inline |
◆ elementInfo() [2/2]
◆ 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: