goblinExport Class Reference
[Exporting objects to files]

Class for writing data objects to file. More...

#include <fileExport.h>

Inheritance diagram for goblinExport:

goblinRootObject

Public Types

enum  TConfig {
  CONF_DIFF = 0,
  CONF_FULL = 1
}

Public Member Functions

 goblinExport (const char *expFileName, goblinController &thisContext=goblinDefaultContext) throw (ERFile)
 ~goblinExport () throw ()
char * Display () const throw ()
const char * Label () const throw ()
unsigned long Size () const throw ()
ofstream & Stream () throw ()
void StartTuple (const char *header, char type) throw (ERRejected)
void StartTuple (unsigned long k, char type) throw (ERRejected)
void EndTuple () throw (ERRejected)
template<typename T>
void MakeItem (T value, char length) throw ()
void MakeNoItem (char length) throw ()
template<typename T>
void WriteAttribute (const T *, const char *, size_t, T) throw ()
void WriteConfiguration (const goblinController &, TConfig=CONF_DIFF) throw ()
template<>
void MakeItem (char *item, char length) throw ()
template<>
void MakeItem (double item, char length) throw ()
template<>
void MakeItem (float item, char length) throw ()

Detailed Description

Class for writing data objects to file.


Member Enumeration Documentation

enum TConfig
 

Enumerator:
CONF_DIFF 
CONF_FULL 


Constructor & Destructor Documentation

goblinExport const char *  expFileName,
goblinController thisContext = goblinDefaultContext
throw (ERFile)
 

~goblinExport  )  throw ()
 


Member Function Documentation

char* Display  )  const throw () [virtual]
 

Implements goblinRootObject.

void EndTuple  )  throw (ERRejected)
 

const char* Label  )  const throw () [virtual]
 

Implements goblinRootObject.

void MakeItem float  item,
char  length
throw ()
 

void MakeItem double  item,
char  length
throw ()
 

void MakeItem char *  item,
char  length
throw ()
 

void MakeItem value,
char  length
throw ()
 

void MakeNoItem char  length  )  throw ()
 

unsigned long Size  )  const throw () [virtual]
 

Implements goblinRootObject.

void StartTuple unsigned long  k,
char  type
throw (ERRejected)
 

void StartTuple const char *  header,
char  type
throw (ERRejected)
 

ofstream& Stream  )  throw ()
 

void WriteAttribute const T *  ,
const char *  ,
size_t  ,
throw ()
 

void WriteConfiguration const goblinController ,
TConfig  = CONF_DIFF
throw ()