#include <dime/Output.h>
Public Member Functions | |
dimeOutput () | |
~dimeOutput () | |
void | setCallback (const int numrecords, int(*cb)(float, void *), void *cbdata) |
bool | setFileHandle (FILE *fp) |
bool | setFilename (const char *const filename) |
void | setBinary (const bool state=true) |
bool | isBinary () const |
bool | writeHeader () |
bool | writeGroupCode (const int groupcode) |
bool | writeInt8 (const int8 val) |
bool | writeInt16 (const int16 val) |
bool | writeInt32 (const int32 val) |
bool | writeFloat (const float val) |
bool | writeDouble (const dxfdouble val) |
bool | writeString (const char *const str) |
int | getUniqueHandleId () |
Friends | |
class | dimeModel |
|
Constructor. |
|
Destructor. |
|
Returns if binary or ASCII will be used when writing. |
|
Sets binary (DXB) or ASCII (DXF) format. Currently only ASCII is supported. |
|
This method sets a callback function that is called with progress information. The first argument of the callback is a float in the range between 0 and 1. The second argument of the callback is the void * cbdata argument. |
|
Sets the output stream. should be a valid file/stream, and it will not be closed in the destructor. |
|
Sets the filename for the output file. The file will be opened, and true is returned if all was ok. The file is closed in the destructor. |
|
Writes a double precision floating point number to the file. |
|
Writes a single precision floating point number to the file. |
|
Writes a record group code to the file. |
|
This method does nothing now, but if binary files are supported in the future, it must be called. |
|
Writes a 16 bit integer to the file. |
|
Writes a 32 bit integer to the file. |
|
Writes an 8 bit integer to the file. |
|
Writes a nul-terminated string to the file. |