Public Member Functions | Protected Attributes

MaxNetFile Class Reference

Search for all occurrences

#include <maxnet_file.h>

Inheritance diagram for MaxNetFile:
Inheritance graph
[legend]

List of all members.

Public Member Functions

  MaxNetFile ()
virtual  ~MaxNetFile ()
virtual bool  OpenRead (const MCHAR *name)
virtual bool  OpenWrite (const MCHAR *name)
virtual void  Close ()
void  Reset ()
MCHAR *  FirstBlank (MCHAR *line)
MCHAR *  FirstNonblank (MCHAR *line)
MCHAR *  NextValue (MCHAR *ln)
bool  LocateSection (MCHAR *section)
MCHAR *  LocateValue (MCHAR *section, MCHAR *var, bool rescan=true)
MCHAR *  GetLine (MCHAR *destination=0)
bool  ReadFilename (MCHAR *ptr, MCHAR *filename)
bool  Write (MCHAR *line)
bool  WriteHeader (MCHAR *hdr)
bool  WritePair (MCHAR *var, float value)
bool  WritePair (MCHAR *var, int value)
bool  WritePair (MCHAR *var, bool value)
bool  WritePair (MCHAR *var, short value)
bool  WritePair (MCHAR *var, DWORD value)
bool  WritePair (MCHAR *var, size_t value)
bool  WritePair (MCHAR *var, MCHAR *value)
bool  WritePair (MCHAR *var, SYSTEMTIME *value)
bool  WritePairHex (MCHAR *var, DWORD value)
bool  ReadPair (MCHAR *section, MCHAR *var, float *value)
bool  ReadPair (MCHAR *section, MCHAR *var, int *value)
bool  ReadPair (MCHAR *section, MCHAR *var, bool *value)
bool  ReadPair (MCHAR *section, MCHAR *var, short *value)
bool  ReadPair (MCHAR *section, MCHAR *var, DWORD *value)
bool  ReadPair (MCHAR *section, MCHAR *var, size_t *value)
bool  ReadPair (MCHAR *section, MCHAR *var, MCHAR *value)
bool  ReadPair (MCHAR *section, MCHAR *var, SYSTEMTIME *value)
bool  ReadPairHex (MCHAR *section, MCHAR *var, DWORD *value)

Protected Attributes

MCHAR  line [1024]
FILE *  f
bool  read

Constructor & Destructor Documentation

virtual ~MaxNetFile ( ) [virtual]

Member Function Documentation

virtual bool OpenRead ( const MCHAR *  name ) [virtual]
virtual bool OpenWrite ( const MCHAR *  name ) [virtual]
virtual void Close ( ) [virtual]
void Reset ( )
MCHAR* FirstBlank ( MCHAR *  line )
MCHAR* FirstNonblank ( MCHAR *  line )
MCHAR* NextValue ( MCHAR *  ln )
bool LocateSection ( MCHAR *  section )
MCHAR* LocateValue ( MCHAR *  section,
MCHAR *  var,
bool  rescan = true 
)
MCHAR* GetLine ( MCHAR *  destination = 0 )
bool ReadFilename ( MCHAR *  ptr,
MCHAR *  filename 
)
bool Write ( MCHAR *  line )
bool WriteHeader ( MCHAR *  hdr )
bool WritePair ( MCHAR *  var,
float  value 
)
bool WritePair ( MCHAR *  var,
int  value 
)
bool WritePair ( MCHAR *  var,
bool  value 
)
bool WritePair ( MCHAR *  var,
short  value 
)
bool WritePair ( MCHAR *  var,
DWORD  value 
)
bool WritePair ( MCHAR *  var,
size_t  value 
)
bool WritePair ( MCHAR *  var,
MCHAR *  value 
)
bool WritePair ( MCHAR *  var,
SYSTEMTIME *  value 
)
bool WritePairHex ( MCHAR *  var,
DWORD  value 
)
bool ReadPair ( MCHAR *  section,
MCHAR *  var,
float *  value 
)
bool ReadPair ( MCHAR *  section,
MCHAR *  var,
int *  value 
)
bool ReadPair ( MCHAR *  section,
MCHAR *  var,
bool *  value 
)
bool ReadPair ( MCHAR *  section,
MCHAR *  var,
short *  value 
)
bool ReadPair ( MCHAR *  section,
MCHAR *  var,
DWORD *  value 
)
bool ReadPair ( MCHAR *  section,
MCHAR *  var,
size_t *  value 
)
bool ReadPair ( MCHAR *  section,
MCHAR *  var,
MCHAR *  value 
)
bool ReadPair ( MCHAR *  section,
MCHAR *  var,
SYSTEMTIME *  value 
)
bool ReadPairHex ( MCHAR *  section,
MCHAR *  var,
DWORD *  value 
)

Member Data Documentation

MCHAR line[1024] [protected]
FILE* f [protected]
bool read [protected]

MaxNetFile MaxNetFile MaxNetFile MaxNetFile MaxNetFile MaxNetFile MaxNetFile MaxNetFile MaxNetFile MaxNetFile
MaxNetFile MaxNetFile MaxNetFile MaxNetFile MaxNetFile MaxNetFile MaxNetFile MaxNetFile MaxNetFile MaxNetFile