Scanframe Modular Application 0.1.0
Loading...
Searching...
No Matches
DL_WriterA Class Reference

#include <dl_writer_ascii.h>

Inheritance diagram for DL_WriterA:
[legend]
Collaboration diagram for DL_WriterA:
[legend]

Public Member Functions

 DL_WriterA (const char *fname, DL_Codes::version version=DL_Codes::AC1015)
virtual ~DL_WriterA ()
bool openFailed () const
void close () const
void dxfReal (int gc, double value) const
void dxfInt (int gc, int value) const
void dxfHex (int gc, int value) const
void dxfString (int gc, const char *value) const
void dxfString (int gc, const std::string &value) const
Public Member Functions inherited from DL_Writer
 DL_Writer (DL_Codes::version version)
virtual ~DL_Writer ()
void section (const char *name) const
void sectionHeader () const
void sectionTables () const
void sectionBlocks () const
void sectionEntities () const
void sectionClasses () const
void sectionObjects () const
void sectionEnd () const
void table (const char *name, int num, int h=0) const
void tableLayers (int num) const
void tableLinetypes (int num) const
void tableAppid (int num) const
void tableStyle (int num) const
void tableEnd () const
void dxfEOF () const
void comment (const char *text) const
void entity (const char *entTypeName) const
void entityAttributes (const DL_Attributes &attrib) const
void subClass (const char *sub) const
void tableLayerEntry (unsigned long int h=0) const
void tableLinetypeEntry (unsigned long int h=0) const
void tableAppidEntry (unsigned long int h=0) const
void sectionBlockEntry (unsigned long int h=0) const
void sectionBlockEntryEnd (unsigned long int h=0) const
void color (int col=256) const
void linetype (const char *lt) const
void linetypeScale (double scale) const
void lineWeight (int lw) const
void coord (int gc, double x, double y, double z=0) const
void coordTriplet (int gc, const double *value) const
void resetHandle () const
unsigned long handle (int gc=5) const
unsigned long getNextHandle () const
virtual void dxfBool (int gc, bool value) const

Static Public Member Functions

static void strReplace (char *str, char src, char dest)

Additional Inherited Members

Protected Attributes inherited from DL_Writer
unsigned long m_handle
unsigned long modelSpaceHandle
unsigned long paperSpaceHandle
unsigned long paperSpace0Handle
DL_Codes::version version

Detailed Description

Implements functions defined in DL_Writer for writing low level DXF constructs to an ASCII format DXF file.

@para fname File name of the file to be created. @para version DXF version. Defaults to DL_VERSION_2002.

Todo
What if fname is NULL? Or fname can't be opened for another reason?

Constructor & Destructor Documentation

◆ DL_WriterA()

DL_WriterA::DL_WriterA ( const char * fname,
DL_Codes::version version = DL_Codes::AC1015 )
inline

◆ ~DL_WriterA()

virtual DL_WriterA::~DL_WriterA ( )
inlinevirtual

Member Function Documentation

◆ close()

void DL_WriterA::close ( ) const

◆ dxfHex()

void DL_WriterA::dxfHex ( int gc,
int value ) const
virtual

Must be overwritten by the implementing class to write an int value (hex) to the file.

Parameters
gcGroup code.
valueThe int value.

Implements DL_Writer.

◆ dxfInt()

void DL_WriterA::dxfInt ( int gc,
int value ) const
virtual

Must be overwritten by the implementing class to write an int value to the file.

Parameters
gcGroup code.
valueThe int value.

Implements DL_Writer.

◆ dxfReal()

void DL_WriterA::dxfReal ( int gc,
double value ) const
virtual

Must be overwritten by the implementing class to write a real value to the file.

Parameters
gcGroup code.
valueThe real value.

Implements DL_Writer.

◆ dxfString() [1/2]

void DL_WriterA::dxfString ( int gc,
const char * value ) const
virtual

Must be overwritten by the implementing class to write a string to the file.

Parameters
gcGroup code.
valueThe string.

Implements DL_Writer.

◆ dxfString() [2/2]

void DL_WriterA::dxfString ( int gc,
const std::string & value ) const
virtual

Must be overwritten by the implementing class to write a string to the file.

Parameters
gcGroup code.
valueThe string.

Implements DL_Writer.

◆ openFailed()

bool DL_WriterA::openFailed ( ) const

◆ strReplace()

void DL_WriterA::strReplace ( char * str,
char src,
char dest )
static

The documentation for this class was generated from the following file: