3ds Max C++ API Reference
|
This class is the base for all text file writers. More...
#include <maxtextfile.h>
Public Member Functions | |
virtual | ~BaseTextWriter () |
virtual size_t | Write (const char *string, size_t nchars=(size_t) -1)=0 |
Write a string. More... | |
virtual size_t | Write (const wchar_t *string, size_t nchars=(size_t) -1)=0 |
Write an UTF-16 string. More... | |
virtual size_t | Write (const MaxString &String)=0 |
Write an MaxString. More... | |
virtual bool | CanWrite () const =0 |
Returns true if we can write to file. More... | |
virtual bool | IsFileOpen () const =0 |
Returns true if file is open. More... | |
virtual void | Flush ()=0 |
Make sure that all the buffer are synced with the OS native objects. More... | |
virtual bool | IsEndOfFile () const =0 |
Returns true if file at the end. More... | |
virtual size_t | Position () const =0 |
Get the current position in the file. More... | |
virtual size_t | Seek (long offset, int origin)=0 |
Seek inside the stream. More... | |
size_t | Printf (const wchar_t *format,...) |
Write a formatted string using current locale. More... | |
size_t | Vprintf (const wchar_t *format, va_list argList) |
Write a formatted string using current locale. More... | |
size_t | Printf_l (const wchar_t *format, const _locale_t theLocale,...) |
Write a formatted string using a specified locale. More... | |
size_t | Vprintf_l (const wchar_t *format, const _locale_t theLocale, va_list argList) |
Write a formatted string using a specified locale. More... | |
Additional Inherited Members | |
![]() | |
static UtilExport void * | operator new (size_t size) |
Standard new operator used to allocate objects If there is insufficient memory, an exception will be thrown. More... | |
static UtilExport void * | operator 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 void * | operator 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 void * | operator 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 void * | operator 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 void * | operator 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 void * | operator 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 void * | operator 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 void * | operator 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 void * | operator 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 void * | operator new[] (size_t size, int block_type, const char *filename, int line) |
New operator used to allocate arrays of objects. More... | |
static UtilExport void * | operator 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 void * | operator 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 void * | operator 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 void * | operator 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 void * | aligned_malloc (size_t size, size_t alignment) |
Allocates memory on a specified alignment boundary. More... | |
static UtilExport void * | aligned_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... | |
This class is the base for all text file writers.
It declare a common interface to all implementations and expose a number of services to output formatted strings to a file.
|
virtual |
Write a string.
string | String to write |
nchars | Number of character to write. Default is size of string in characters |
Implemented in ReaderWriter, and Writer.
Write an UTF-16 string.
string | String to write |
nchars | Number of character to write. Default is size of string in characters |
Implemented in ReaderWriter, and Writer.
|
pure virtual |
Returns true if we can write to file.
Implemented in ReaderWriter, and Writer.
|
pure virtual |
Returns true if file is open.
Implemented in ReaderWriter, and Writer.
|
pure virtual |
Make sure that all the buffer are synced with the OS native objects.
Implemented in ReaderWriter, and Writer.
|
pure virtual |
Returns true if file at the end.
Implemented in ReaderWriter, and Writer.
|
pure virtual |
Get the current position in the file.
Implemented in ReaderWriter, and Writer.
Seek inside the stream.
offset | The seeks operations are done in number of characters (not bytes). |
origin | The direction to move. Origin can be one of the following
|
Implemented in ReaderWriter, and Writer.
size_t Printf | ( | const wchar_t * | format, |
... | |||
) |
Write a formatted string using current locale.
Writes the format string, filled in by the optional arguments. See the ISO C++ documentation for more information on printf and format strings.
format | The format specification. |
... | optional arguments to format. |
size_t Vprintf | ( | const wchar_t * | format, |
va_list | argList | ||
) |
Write a formatted string using current locale.
Writes the format string, filled in by the optional arguments. See the ISO C++ documentation for more information on vprintf and format strings.
format | The format specification. |
argList | va_list to format. |
size_t Printf_l | ( | const wchar_t * | format, |
const _locale_t | theLocale, | ||
... | |||
) |
Write a formatted string using a specified locale.
Writes the format string, filled in by the optional arguments. See the ISO C++ documentation for more information on printf and format strings.
format | The format specification. |
theLocale | The locale to use. |
... | optional arguments to format. |
size_t Vprintf_l | ( | const wchar_t * | format, |
const _locale_t | theLocale, | ||
va_list | argList | ||
) |
Write a formatted string using a specified locale.
Writes the format string, filled in by the optional arguments. See the ISO C++ documentation for more information on vprintf and format strings.
format | The format specification. |
theLocale | The locale to use. |
argList | va_list to format. |