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)
static dvector data_diagonal (const Geometry &geometry, int voxels_read, int voxels_phase)

Static Protected Member Functions

static STD_string selectDataType (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

void FileFormat::register_format (  ) 

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

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

creates unique filenames based on 'filename' for the protocol-data pairs in 'pdmap'

static dvector FileFormat::data_diagonal ( const Geometry geometry,
int  voxels_read,
int  voxels_phase 
) [static]

compute the vector from the first spacial voxel to the last and return it transformed to the scanner space voxels_read,voxels_phase are the amount of voxels along the read/phase vector

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

Returns the spatial voxel extent in the given direction assuming the given size


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

Generated on Wed Sep 30 15:33:05 2009 by  doxygen 1.5.6