Public Types | Static Public Member Functions

DGtal::GenericWriter< TObject > Struct Template Reference

Aim: implements a generic DGtal object writer with the help of boost serialisation concepts. More...

#include <GenericWriter.h>

Public Types

typedef TObject Object

Static Public Member Functions

static bool exportXML (const std::string &filename, const Object &anObject)
static bool exportTXT (const std::string &filename, const Object &anObject)
static bool exportBIN (const std::string &filename, const Object &anObject)

Detailed Description

template<typename TObject>
struct DGtal::GenericWriter< TObject >

Aim: implements a generic DGtal object writer with the help of boost serialisation concepts.

Description of template class 'GenericWriter'

The Object type given by the template parameter

Template Parameters:
TObject,must implement a boost::serialize method.

Member Typedef Documentation

template<typename TObject >
typedef TObject DGtal::GenericWriter< TObject >::Object

Member Function Documentation

template<typename TObject >
static bool DGtal::GenericWriter< TObject >::exportBIN ( const std::string &  filename,
const Object anObject 
) [static]

Export an Object with the Boost serialisation process with non-portable binary format.

Parameters:
filename name of the output file
anObject the object to export
Returns:
true if no errors occur.
template<typename TObject >
static bool DGtal::GenericWriter< TObject >::exportTXT ( const std::string &  filename,
const Object anObject 
) [static]

Export an Object with the Boost serialisation process with portable text format.

Parameters:
filename name of the output file
anObject the object to export
Returns:
true if no errors occur.
template<typename TObject >
static bool DGtal::GenericWriter< TObject >::exportXML ( const std::string &  filename,
const Object anObject 
) [static]

Export an Object with the Boost serialisation process with portable XML format.

Parameters:
filename name of the output file
anObject the object to export
Returns:
true if no errors occur.

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