3ds Max C++ API Reference
Loading...
Searching...
No Matches
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 (const MCHAR *section)
 
MCHARLocateValue (const MCHAR *section, const MCHAR *var, bool rescan=true)
 
MCHARGetLine (MCHAR *destination=0)
 
bool ReadFilename (MCHAR *ptr, MCHAR *filename)
 
bool Write (const MCHAR *line)
 
bool WriteHeader (const MCHAR *hdr)
 
bool WritePair (const MCHAR *var, float value)
 
bool WritePair (const MCHAR *var, int value)
 
bool WritePair (const MCHAR *var, bool value)
 
bool WritePair (const MCHAR *var, short value)
 
bool WritePair (const MCHAR *var, DWORD value)
 
bool WritePair (const MCHAR *var, size_t value)
 
bool WritePair (const MCHAR *var, MCHAR *value)
 
bool WritePair (const MCHAR *var, SYSTEMTIME *value)
 
bool WritePairHex (const MCHAR *var, DWORD value)
 
bool ReadPair (const MCHAR *section, const MCHAR *var, float *value)
 
bool ReadPair (const MCHAR *section, const MCHAR *var, int *value)
 
bool ReadPair (const MCHAR *section, const MCHAR *var, bool *value)
 
bool ReadPair (const MCHAR *section, const MCHAR *var, short *value)
 
bool ReadPair (const MCHAR *section, const MCHAR *var, DWORD *value)
 
bool ReadPair (const MCHAR *section, const MCHAR *var, size_t *value)
 
bool ReadPair (const MCHAR *section, const MCHAR *var, MCHAR *value)
 
bool ReadPair (const MCHAR *section, const MCHAR *var, SYSTEMTIME *value)
 
bool ReadPairHex (const MCHAR *section, const 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.
 
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.
 
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.
 
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.
 
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.
 
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.
 
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.
 
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.
 
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.
 
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.
 
static UtilExport voidoperator new[] (size_t size, int block_type, const char *filename, int line)
 New operator used to allocate arrays of objects.
 
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.
 
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.
 
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.
 
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.
 
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.
 
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.
 
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.
 
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.
 
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.
 
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.
 
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.
 
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.
 
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.
 
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.
 
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.
 
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.
 
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.
 
static UtilExport voidoperator new (size_t size, void *placement_ptr)
 Placement new operator.
 
static UtilExport void operator delete (void *ptr, void *placement_ptr)
 Placement delete operator.
 
static UtilExport voidaligned_malloc (size_t size, size_t alignment)
 Allocates memory on a specified alignment boundary.
 
static UtilExport voidaligned_realloc (void *ptr, size_t size, size_t alignment)
 Reallocates memory on a specified alignment boundary.
 
static UtilExport void aligned_free (void *ptr)
 Frees a block of memory that was allocated with aligned_malloc/aligned_realloc.
 

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 ( const MCHAR section)

◆ LocateValue()

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

◆ GetLine()

MCHAR * GetLine ( MCHAR destination = 0)

◆ ReadFilename()

bool ReadFilename ( MCHAR ptr,
MCHAR filename 
)

◆ Write()

bool Write ( const MCHAR line)

◆ WriteHeader()

bool WriteHeader ( const MCHAR hdr)

◆ WritePair() [1/8]

bool WritePair ( const MCHAR var,
float  value 
)

◆ WritePair() [2/8]

bool WritePair ( const MCHAR var,
int  value 
)

◆ WritePair() [3/8]

bool WritePair ( const MCHAR var,
bool  value 
)

◆ WritePair() [4/8]

bool WritePair ( const MCHAR var,
short  value 
)

◆ WritePair() [5/8]

bool WritePair ( const MCHAR var,
DWORD  value 
)

◆ WritePair() [6/8]

bool WritePair ( const MCHAR var,
size_t  value 
)

◆ WritePair() [7/8]

bool WritePair ( const MCHAR var,
MCHAR value 
)

◆ WritePair() [8/8]

bool WritePair ( const MCHAR var,
SYSTEMTIME *  value 
)

◆ WritePairHex()

bool WritePairHex ( const MCHAR var,
DWORD  value 
)

◆ ReadPair() [1/8]

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

◆ ReadPair() [2/8]

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

◆ ReadPair() [3/8]

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

◆ ReadPair() [4/8]

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

◆ ReadPair() [5/8]

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

◆ ReadPair() [6/8]

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

◆ ReadPair() [7/8]

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

◆ ReadPair() [8/8]

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

◆ ReadPairHex()

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

Member Data Documentation

◆ line

MCHAR line[1024]
protected

◆ f

FILE* f
protected

◆ read

bool read
protected