aimsdata  5.0.5
Neuroimaging data handling
aims::ArgWriter Class Reference

#include <aims/io/argW.h>

Public Types

enum  SavingMode { Keep, Global, Local }
 

Public Member Functions

 ArgWriter (const std::string &filename)
 
 ~ArgWriter ()
 
bool write (Graph &, SavingMode mode=Keep) const
 

Static Public Member Functions

static void registerWriter (const std::string &syntax, LowLevelArgWriter *writer)
 sets the writer to use for graphs of a specific syntax. More...
 
static bool hasWriter (const std::string &syntax)
 
static void deleteWriter (const std::string &syntax)
 removes and deletes a writer More...
 

Detailed Description

Definition at line 76 of file argW.h.

Member Enumeration Documentation

◆ SavingMode

Enumerator
Keep 
Global 
Local 

Definition at line 79 of file argW.h.

Constructor & Destructor Documentation

◆ ArgWriter()

aims::ArgWriter::ArgWriter ( const std::string &  filename)

◆ ~ArgWriter()

aims::ArgWriter::~ArgWriter ( )

Member Function Documentation

◆ deleteWriter()

static void aims::ArgWriter::deleteWriter ( const std::string &  syntax)
static

removes and deletes a writer

◆ hasWriter()

static bool aims::ArgWriter::hasWriter ( const std::string &  syntax)
static

◆ registerWriter()

static void aims::ArgWriter::registerWriter ( const std::string &  syntax,
LowLevelArgWriter writer 
)
static

sets the writer to use for graphs of a specific syntax.

The writer then belongs to ArgWriter (never delete it)

◆ write()

bool aims::ArgWriter::write ( Graph ,
SavingMode  mode = Keep 
) const

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