37#ifndef AIMS_IO_AIMSGRAPHW_H
38#define AIMS_IO_AIMSGRAPHW_H
41#include <cartobase/object/attributed.h>
51 struct AimsGraphWriter_ElemStruct;
76 virtual int freeindex()
const = 0;
89 virtual std::string
dataType()
const;
94 virtual int freeindex()
const;
125 bool saveOnlyModified =
false );
129 template <
typename T>
static bool isEmpty(
const T & obj );
135 template<
class T>
bool write(
const T & )
const;
137 internal::AimsGraphWriter_ElemStruct & es );
139 mutable ElementInfo info;
virtual void writeElements(Graph &g, SavingMode newmode=Keep, SavingMode oldmode=Keep, bool saveOnlyModified=false)
Saves elements contained in the graph.
virtual ~AimsGraphWriter()
static bool defaultTakeObject(Process &, const std::string &, Finder &)
static bool isEmpty(const T &obj)
const ElementInfo & elementInfo() const
ElementInfo & elementInfo()
AimsGraphWriter(const std::string &filename)
Generic finder / checker for all data objects and file formats This will replace the old AimsFinder.
Process()
Attempts to read the header of filename and, if successful, calls the operator() of the process \proc...
The class for EcatSino data write operation.
bool write(const T &obj, const std::string &filename, carto::Object options=carto::none(), const std::string *format=0)
Finds the correct format and writes the object, global version.
SyntaxedObject< PropertySet > AttributedObject
carto::AttributedObject * element
friend class AimsGraphWriter
virtual std::string objectType() const
virtual std::string dataType() const
virtual std::string dataType() const =0
virtual std::string objectType() const =0
friend class AimsGraphWriter