Public Member Functions | Static Public Member Functions | Static Protected Member Functions | Friends

FileFormat Class Reference
[Classes of the ODIN data processing framework (odindata library)]

#include <fileio.h>

List of all members.

Public Member Functions

void register_format ()

Static Public Member Functions

static svector create_unique_filenames (const STD_string &filename, const FileIO::ProtocolDataMap &pdmap, const STD_string &par)
static float voxel_extent (const Geometry &geometry, direction direction, int size)

Static Protected Member Functions

static STD_string select_write_datatype (const Protocol &prot, const FileWriteOpts &opts)

Friends

class FileIO

Detailed Description

Base class for file formats

Definition at line 114 of file fileio.h.


Member Function Documentation

static svector FileFormat::create_unique_filenames ( const STD_string &  filename,
const FileIO::ProtocolDataMap pdmap,
const STD_string &  par 
) [static]

creates unique filenames based on 'filename' for the protocol-data pairs in 'pdmap' using comma-separated list of additional parameters in 'par'

void FileFormat::register_format (  ) 

Use this function on a static instance to register the corresponding file format

static STD_string FileFormat::select_write_datatype ( const Protocol prot,
const FileWriteOpts opts 
) [static, protected]

Select the appropriate data type when writing binary data

static float FileFormat::voxel_extent ( const Geometry geometry,
direction  direction,
int  size 
) [static]

returns the voxel extent of the 'geometry' in the given 'direction' using a matrix size 'size'.


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