Main Page | Class Hierarchy | Class List | Directories | File List | Class Members | Related Pages

DL_WriterA Class Reference

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

#include <dl_writer_ascii.h>

Inheritance diagram for DL_WriterA:

DL_Writer List of all members.

Public Member Functions

 DL_WriterA (const char *fname, DL_Codes::version version=VER_2000)
bool openFailed () const
void close () const
 Closes the output file.
void dxfReal (int gc, double value) const
 Writes a real (double) variable to the DXF file.
void dxfInt (int gc, int value) const
 Writes an int variable to the DXF file.
void dxfHex (int gc, int value) const
 Writes a hex int variable to the DXF file.
void dxfString (int gc, const char *value) const
 Writes a string variable to the DXF file.
void dxfString (int gc, const string &value) const
 Must be overwritten by the implementing class to write a string to the file.

Static Public Member Functions

static void strReplace (char *str, char src, char dest)
 Replaces every occurence of src with dest in the null terminated str.

Detailed Description

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

fname File name of the file to be created. version DXF version. Defaults to VER_2002.

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


Member Function Documentation

void DL_WriterA::dxfHex int  gc,
int  value
const [virtual]
 

Writes a hex int variable to the DXF file.

Parameters:
gc Group code.
value Int value

Implements DL_Writer.

void DL_WriterA::dxfInt int  gc,
int  value
const [virtual]
 

Writes an int variable to the DXF file.

Parameters:
gc Group code.
value Int value

Implements DL_Writer.

void DL_WriterA::dxfReal int  gc,
double  value
const [virtual]
 

Writes a real (double) variable to the DXF file.

Parameters:
gc Group code.
value Double value

Implements DL_Writer.

void DL_WriterA::dxfString int  gc,
const string &  value
const [virtual]
 

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

Parameters:
gc Group code.
value The string.

Implements DL_Writer.

void DL_WriterA::dxfString int  gc,
const char *  value
const [virtual]
 

Writes a string variable to the DXF file.

Parameters:
gc Group code.
value String

Implements DL_Writer.

bool DL_WriterA::openFailed  )  const
 

Return values:
true Opening file has failed.
false Otherwise.


The documentation for this class was generated from the following files:
Generated on Sat Jan 6 13:48:19 2007 for dxflib by  doxygen 1.4.4