aimsdata  5.1.2
Neuroimaging data handling
aims::ArgFormat Class Reference

#include <aims/io/baseFormats_graph.h>

Inheritance diagram for aims::ArgFormat:
Collaboration diagram for aims::ArgFormat:

Public Member Functions

virtual ~ArgFormat ()
 
virtual bool read (const std::string &filename, Graph &obj, const carto::AllocatorContext &context, carto::Object options)
 
virtual Graphread (const std::string &filename, const carto::AllocatorContext &context, carto::Object options)
 Creates an object and reads it. More...
 
virtual bool write (const std::string &filename, const Graph &obj, carto::Object options=carto::none())
 the forceglobal parameter is a hack that replaces the usual ascii flag. More...
 
- Public Member Functions inherited from aims::FileFormat< Graph >
virtual ~FileFormat ()
 
carto::GenericObjectread (const std::string &, const carto::AllocatorContext &, carto::Object)
 
virtual bool write (const std::string &, const Graph &, carto::Object options=carto::none())
 the base class has a default implementation which only returns false so if your new format only supports read operations, you won't have to bother about the write() function More...
 

Detailed Description

Definition at line 45 of file baseFormats_graph.h.

Constructor & Destructor Documentation

◆ ~ArgFormat()

virtual aims::ArgFormat::~ArgFormat ( )
virtual

Member Function Documentation

◆ read() [1/2]

virtual Graph* aims::ArgFormat::read ( const std::string &  filename,
const carto::AllocatorContext &  context,
carto::Object  options 
)
virtual

Creates an object and reads it.

The default implementation just calls the other read() function. The returned object may be deleted by the standard delete

Reimplemented from aims::FileFormat< Graph >.

◆ read() [2/2]

virtual bool aims::ArgFormat::read ( const std::string &  filename,
Graph obj,
const carto::AllocatorContext &  context,
carto::Object  options 
)
virtual

◆ write()

virtual bool aims::ArgFormat::write ( const std::string &  filename,
const Graph obj,
carto::Object  options = carto::none() 
)
virtual

the forceglobal parameter is a hack that replaces the usual ascii flag.

If set, internal objects are saved in "global" mode (see AimsGraphWriter)


The documentation for this class was generated from the following file: