34 #ifndef AIMS_IO_AIMSGRAPHR_H
35 #define AIMS_IO_AIMSGRAPHR_H
49 struct AimsGraphReader_Private;
50 struct AimsGraphReader_ElemStruct;
74 virtual Wrapper *extract(
int index ) = 0;
84 virtual std::string
dataType()
const;
89 virtual Wrapper *extract(
int index );
183 const std::string & dataType,
196 template<
class T>
static
203 template<
class T>
static
204 bool defaultInsertFunction(
Process &,
const std::string &,
Finder & );
206 internal::AimsGraphReader_ElemStruct & es );
ElementInfo & elementInfo()
const ElementInfo & elementInfo() const
Reader / postprocessor for graph reading.
static bool read(Process &, const std::string &, Finder &)
Aims object reading function - called by the Process mechanism.
void setReadFilter(const std::set< std::string > &toread)
Filters objects IDs in the graph file to be read as Aims objects.
virtual void readElements(Graph &g, int mask=1)
Reads internal objects and stores them in the graph.
virtual ~AimsGraphReader()
static void loadAllMissingElements(Graph &)
convenient function to load everything that can be loaded.
AimsGraphReader(const std::string &filename)
void setExcludeFilter(const std::set< std::string > &toexclude)
Filters objects IDs in the graph file to be read as Aims objects.
void setInsertionFunction(const std::string &objType, const std::string &dataType, ProcFunc procFunc)
Registers a post-processing function.
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.
bool(* ProcFunc)(Process &, const std::string &, Finder &)
Process function type.
The class for EcatSino data write operation.
BucketMap< Void > * mask(const BucketMap< Void > &src, const BucketMap< Void > &m, bool intersect=true)
mask src object with m.
carto::AttributedObject * element
virtual std::string objectType() const
virtual std::string dataType() const
virtual std::string objectType() const =0
virtual std::string dataType() const =0