3ds Max C++ API 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...
 
static UtilExport voidaligned_malloc (size_t size, size_t alignment)
 Allocates memory on a specified alignment boundary. More...
 
static UtilExport voidaligned_realloc (void *ptr, size_t size, size_t alignment)
 Reallocates memory on a specified alignment boundary. More...
 
static UtilExport void aligned_free (void *ptr)
 Frees a block of memory that was allocated with aligned_malloc/aligned_realloc. More...
 

Constructor & Destructor Documentation

◆ MaxNetFile()

◆ ~MaxNetFile()

virtual ~MaxNetFile ( )
virtual

Member Function Documentation

◆ OpenRead()

virtual bool OpenRead ( const MCHAR name)
virtual

◆ OpenWrite()

virtual bool OpenWrite ( const MCHAR name)
virtual

◆ Close()

virtual void Close ( )
virtual

◆ Reset()

void Reset ( )

◆ FirstBlank()

MCHAR* FirstBlank ( MCHAR line)

◆ FirstNonblank()

MCHAR* FirstNonblank ( MCHAR line)

◆ NextValue()

MCHAR* NextValue ( MCHAR ln)

◆ LocateSection()

bool LocateSection ( MCHAR section)

◆ LocateValue()

MCHAR* LocateValue ( MCHAR section,
MCHAR var,
bool  rescan = true 
)

◆ GetLine()

MCHAR* GetLine ( MCHAR destination = 0)

◆ ReadFilename()

bool ReadFilename ( MCHAR ptr,
MCHAR filename 
)

◆ Write()

bool Write ( MCHAR line)

◆ WriteHeader()

bool WriteHeader ( MCHAR hdr)

◆ WritePair() [1/8]

bool WritePair ( MCHAR var,
float  value 
)

◆ WritePair() [2/8]

bool WritePair ( MCHAR var,
int  value 
)

◆ WritePair() [3/8]

bool WritePair ( MCHAR var,
bool  value 
)

◆ WritePair() [4/8]

bool WritePair ( MCHAR var,
short  value 
)

◆ WritePair() [5/8]

bool WritePair ( MCHAR var,
DWORD  value 
)

◆ WritePair() [6/8]

bool WritePair ( MCHAR var,
size_t  value 
)

◆ WritePair() [7/8]

bool WritePair ( MCHAR var,
MCHAR value 
)

◆ WritePair() [8/8]

bool WritePair ( MCHAR var,
SYSTEMTIME *  value 
)

◆ WritePairHex()

bool WritePairHex ( MCHAR var,
DWORD  value 
)

◆ ReadPair() [1/8]

bool ReadPair ( MCHAR section,
MCHAR var,
float *  value 
)

◆ ReadPair() [2/8]

bool ReadPair ( MCHAR section,
MCHAR var,
int value 
)

◆ ReadPair() [3/8]

bool ReadPair ( MCHAR section,
MCHAR var,
bool *  value 
)

◆ ReadPair() [4/8]

bool ReadPair ( MCHAR section,
MCHAR var,
short *  value 
)

◆ ReadPair() [5/8]

bool ReadPair ( MCHAR section,
MCHAR var,
DWORD *  value 
)

◆ ReadPair() [6/8]

bool ReadPair ( MCHAR section,
MCHAR var,
size_t value 
)

◆ ReadPair() [7/8]

bool ReadPair ( MCHAR section,
MCHAR var,
MCHAR value 
)

◆ ReadPair() [8/8]

bool ReadPair ( MCHAR section,
MCHAR var,
SYSTEMTIME *  value 
)

◆ ReadPairHex()

bool ReadPairHex ( MCHAR section,
MCHAR var,
DWORD *  value 
)

Member Data Documentation

◆ line

MCHAR line[1024]
protected

◆ f

FILE* f
protected

◆ read

bool read
protected