37 #ifndef AIMS_IO_AIMSGRAPHW_H
38 #define AIMS_IO_AIMSGRAPHW_H
47 struct AimsGraphWriter_Private;
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;
const ElementInfo & elementInfo() const
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)
AimsGraphWriter(const std::string &filename)
ElementInfo & elementInfo()
Generic finder / checker for all data objects and file formats This will replace the old AimsFinder.
Link mechanism between the Finder and a process operating on arbitrary data types.
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.
carto::AttributedObject * element
virtual std::string objectType() const
virtual std::string dataType() const
virtual std::string dataType() const =0
virtual std::string objectType() const =0