Class hierarchy   Compound list   Header files   Member list  

dimeOutput Class Reference

The dimeOutput class handles writing of DXF and DXB files. More...

#include <Output.h>

List of all members.

Public Members


Detailed Description

The dimeOutput class handles writing of DXF and DXB files.


Member Function Documentation

dimeOutput::dimeOutput()

Constructor.

dimeOutput::~dimeOutput()

Destructor.

void dimeOutput::setCallback(const int num_records, int (*cb)(float, void *), void *cbdata)

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.

bool dimeOutput::setFilename(const char * const filename)

Sets the filename for the output file. The file will be opened, and true is returned if all was ok.

void dimeOutput::setBinary(const bool state)

Sets binary (DXB) or ASCII (DXF) format.

bool dimeOutput::isBinary() const

Returns if binary or ASCII will be used when writing.

bool dimeOutput::writeHeader()

This method does nothing now, but if binary files are supported in the future, it must be called.

bool dimeOutput::writeGroupCode(const int groupcode)

Writes a record group code to the file.

bool dimeOutput::writeInt8(const int8 val)

Writes an 8 bit integer to the file.

bool dimeOutput::writeInt16(const int16 val)

Writes a 16 bit integer to the file.

bool dimeOutput::writeInt32(const int32 val)

Writes a 32 bit integer to the file.

bool dimeOutput::writeFloat(const float val)

Writes a single precision floating point number to the file.

bool dimeOutput::writeDouble(const dxfdouble val)

Writes a double precision floating point number to the file.

bool dimeOutput::writeString(const char * const str)

Writes a nul-terminated string to the file.


The documentation for this class was generated from the following files:
Copyright © 1998-1999, Systems In Motion <sales@sim.no>. All rights reserved.
System documentation was generated using doxygen.