MaxNetFile Class Reference

MaxNetFile Class Reference

#include <maxnet_file.h>

+ Inheritance diagram for MaxNetFile:

Public Member Functions

 MaxNetFile ()
 
virtual ~MaxNetFile ()
 
virtual bool OpenRead (const MCHAR *name)
 
virtual bool OpenWrite (const MCHAR *name)
 
virtual void Close ()
 
void Reset ()
 
MCHARFirstBlank (MCHAR *line)
 
MCHARFirstNonblank (MCHAR *line)
 
MCHARNextValue (MCHAR *ln)
 
bool LocateSection (MCHAR *section)
 
MCHARLocateValue (MCHAR *section, MCHAR *var, bool rescan=true)
 
MCHARGetLine (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
 

Additional Inherited Members

- Static Public Member Functions inherited from MaxHeapOperators
static UtilExport voidoperator new (size_t size)
 Standard new operator used to allocate objects If there is insufficient memory, an exception will be thrown. More...
 
static UtilExport voidoperator new (size_t size, const std::nothrow_t &e)
 Standard new operator used to allocate objects if there is insufficient memory, NULL will be returned. More...
 
static UtilExport voidoperator new (size_t size, const char *filename, int line)
 New operator used to allocate objects that takes the filename and line number where the new was called If there is insufficient memory, an exception will be thrown. More...
 
static UtilExport voidoperator new (size_t size, int block_type, const char *filename, int line)
 New operator used to allocate objects that takes the type of memory, filename and line number where the new was called If there is insufficient memory, an exception will be thrown. More...
 
static UtilExport voidoperator new (size_t size, const std::nothrow_t &e, const char *filename, int line)
 New operator used to allocate objects that takes the filename and line number where the new was called If there is insufficient memory, NULL will be returned. More...
 
static UtilExport voidoperator new (size_t size, unsigned long flags)
 New operator used to allocate objects that takes extra flags to specify special operations If there is insufficient memory, an exception will be thrown. More...
 
static UtilExport voidoperator new (size_t size, const std::nothrow_t &e, unsigned long flags)
 New operator used to allocate objects that takes extra flags to specify special operations If there is insufficient memory, NULL will be returned. More...
 
static UtilExport voidoperator new[] (size_t size)
 New operator used to allocate arrays of objects If there is insufficient memory, an exception will be thrown. More...
 
static UtilExport voidoperator new[] (size_t size, const std::nothrow_t &e)
 New operator used to allocate arrays of objects If there is insufficient memory, NULL will be returned. More...
 
static UtilExport voidoperator new[] (size_t size, const char *filename, int line)
 New operator used to allocate arrays of objects If there is insufficient memory, an exception will be thrown. More...
 
static UtilExport voidoperator new[] (size_t size, int block_type, const char *filename, int line)
 New operator used to allocate arrays of objects. More...
 
static UtilExport voidoperator new[] (size_t size, const std::nothrow_t &e, const char *filename, int line)
 New operator used to allocate arrays of objects If there is insufficient memory, NULL will be returned. More...
 
static UtilExport voidoperator new[] (size_t size, unsigned long flags)
 New operator used to allocate arrays of objects If there is insufficient memory, an exception will be thrown. More...
 
static UtilExport voidoperator new[] (size_t size, const std::nothrow_t &e, unsigned long flags)
 New operator used to allocate arrays of objects If there is insufficient memory, NULL will be returned. More...
 
static UtilExport void operator delete (void *ptr)
 Standard delete operator used to deallocate an object If the pointer is invalid, an exception will be thrown. More...
 
static UtilExport void operator delete (void *ptr, const std::nothrow_t &e)
 Standard delete operator used to deallocate an object If the pointer is invalid, nothing will happen. More...
 
static UtilExport void operator delete (void *ptr, const char *filename, int line)
 Delete operator used to deallocate an object that takes the filename and line number where the delete was called If the pointer is invalid, an exception will be thrown. More...
 
static UtilExport void operator delete (void *ptr, int block_type, const char *filename, int line)
 Delete operator used to deallocate an object that takes the type of memory, filename and line number where the delete was called If the pointer is invalid, an exception will be thrown. More...
 
static UtilExport void operator delete (void *ptr, const std::nothrow_t &e, const char *filename, int line)
 Delete operator used to deallocate an object that takes the filename and line number where the delete was called If the pointer is invalid, nothing will happen. More...
 
static UtilExport void operator delete (void *ptr, unsigned long flags)
 Delete operator used to deallocate an object that takes extra flags to specify special operations If the pointer is invalid, an exception will be thrown. More...
 
static UtilExport void operator delete (void *ptr, const std::nothrow_t &e, unsigned long flags)
 Delete operator used to deallocate an object that takes extra flags to specify special operations If the pointer is invalid, nothing will happen. More...
 
static UtilExport void operator delete[] (void *ptr)
 Standard delete operator used to deallocate an array of objects If the pointer is invalid, an exception will be thrown. More...
 
static UtilExport void operator delete[] (void *ptr, const std::nothrow_t &e)
 Standard delete operator used to deallocate an array of objects If the pointer is invalid, nothing will happen. More...
 
static UtilExport void operator delete[] (void *ptr, const char *filename, int line)
 Delete operator used to deallocate an array of objects that takes the filename and line number where the delete was called If the pointer is invalid, an exception will be thrown. More...
 
static UtilExport void operator delete[] (void *ptr, int block_type, const char *filename, int line)
 Delete operator used to deallocate an array of objects that takes the type of memory, filename and line number where the delete was called If the pointer is invalid, an exception will be thrown. More...
 
static UtilExport void operator delete[] (void *ptr, const std::nothrow_t &e, const char *filename, int line)
 Delete operator used to deallocate an array of objects that takes the filename and line number where the delete was called If the pointer is invalid, nothing will happen. More...
 
static UtilExport void operator delete[] (void *ptr, unsigned long flags)
 Delete operator used to deallocate an array of objects that takes extra flags to specify special operations If the pointer is invalid, an exception will be thrown. More...
 
static UtilExport void operator delete[] (void *ptr, const std::nothrow_t &e, unsigned long flags)
 Delete operator used to deallocate an array of objects that takes extra flags to specify special operations If the pointer is invalid, an exception will be thrown. More...
 
static UtilExport voidoperator new (size_t size, void *placement_ptr)
 Placement new operator. More...
 
static UtilExport void operator delete (void *ptr, void *placement_ptr)
 Placement delete operator. More...
 

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