SourceForge Logo
P.I.G.A.L.E.
1.3.9
Public Implementation of a Graph Algorithm
Library and Editor

H. de Fraysseix      P. Ossona de Mendez

Tgf Class Reference

Collaboration diagram for Tgf:

Collaboration graph
[legend]

List of all members.


Detailed Description

Ce type de fichier permet d'ecrire un certain nombre (RecordNum) d'objets (record), chacun etant defini par un nombre variable (FieldNum) de tags (TOUS DIFFERENTS). Chaque record a un numero compris entre 1 et RecordNum

Utilisation Ecriture:

Remarque: Pendant la definition d'un nouveau record, on n'a pas le droit d'utiliser d'autres fonctions. Utilisation en Lecture:

Remarque: On peut lire un tag dans un ordre different de l'ecriture

Un fichier TGF contient: header,subheader,des IFD,des records

Public Types

Public Member Functions

Public Attributes

Private Types

Private Member Functions

Private Attributes


Member Enumeration Documentation

enum ifd_tags [private]

Enumerator:
TAG_FIRST 
TAG_NEXT 

enum open_mode

Enumerator:
old 
create 


Constructor & Destructor Documentation

Tgf (  )  [inline]

~Tgf (  )  [inline]


Member Function Documentation

int ReadHeader (  )  [private]

int WriteHeader (  )  [private]

int IfdRead ( long  offset  )  [private]

int IfdReadAll ( long  offset  )  [private]

int IfdWrite ( long  offset  )  [private]

int ReadOffsets (  )  [private]

int Flush (  )  [private]

int open ( const char *  name,
open_mode  mode = old 
)

void close (  )  [inline]

int LengthSubHeader (  )  [inline]

void WriteSubHeader (  )  [inline]

void ReadSubHeader (  )  [inline]

int good (  )  [inline]

int RecordsNumber (  )  [inline]

int CreateRecord (  ) 

int SetRecord ( int  num  ) 

int DeleteRecord ( int  num  ) 

long GetTagLength ( int  Tag  ) 

int SeekWrite ( short  t,
long  NumberBytes 
)

int FieldWrite ( short  t,
const char *  pointeur,
long  NumberBytes 
)

int FieldWrite ( short  t,
const char  c 
) [inline]

int FieldWrite ( short  t,
const short  i 
) [inline]

int FieldWrite ( short  t,
const int  i 
) [inline]

int FieldWrite ( short  t,
const long  l 
) [inline]

int FieldWrite ( short  t,
const float  f 
) [inline]

int FieldWrite ( short  t,
const double  d 
) [inline]

int FieldWrite ( short  t,
const char *  str 
) [inline]

int SeekRead ( short  t,
long  NumberBytes 
)

int FieldRead ( short  t,
char *  pointeur,
long  NumberBytes 
)

int SeekRead ( short  t  )  [inline]

int FieldRead ( short  t,
char *  pointeur 
) [inline]

int FieldRead ( short  t,
char &  c 
) [inline]

int FieldRead ( short  t,
short &  i 
) [inline]

int FieldRead ( short  t,
int &  i 
) [inline]

int FieldRead ( short  t,
long &  l 
) [inline]

int FieldRead ( short  t,
float &  f 
) [inline]

int FieldRead ( short  t,
double &  d 
) [inline]


Member Data Documentation

StructHeader Header [private]

StructIfd Ifd [private]

int IsOpen [private]

int IsGood [private]

int new_ifd [private]

int new_data [private]

int seek [private]

long CurrentIfdOffset [private]

TSArray<long> IfdOffset [private]

long offset_new_data [private]

StructTagList TagList

char SubHeader[17]

T_STD fstream stream


Generated on Thu Jan 31 16:52:11 2008 for Pigale by  doxygen 1.5.4