Public Types | Static Public Member Functions

DGtal::GenericReader< TObject > Struct Template Reference

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

#include <GenericReader.h>

Public Types

typedef TObject Object

Static Public Member Functions

static Object importXML (const std::string &filename)
static Object importTXT (const std::string &filename)
static Object importBIN (const std::string &filename)

Detailed Description

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

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

Description of template class 'GenericReader'

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::GenericReader< TObject >::Object

Member Function Documentation

template<typename TObject >
static Object DGtal::GenericReader< TObject >::importBIN ( const std::string &  filename  )  [static]

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

Parameters:
filename name of the output file
Returns:
an instance of Object.
template<typename TObject >
static Object DGtal::GenericReader< TObject >::importTXT ( const std::string &  filename  )  [static]

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

Parameters:
filename name of the output file
Returns:
an instance of Object.
template<typename TObject >
static Object DGtal::GenericReader< TObject >::importXML ( const std::string &  filename  )  [static]

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

Parameters:
filename name of the output file
Returns:
an instance of Object.

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