26#ifndef DL_WRITER_ASCII_H
27#define DL_WRITER_ASCII_H
53 virtual ~DL_WriterA() {}
57 void dxfReal(
int gc,
double value)
const;
58 void dxfInt(
int gc,
int value)
const;
59 void dxfHex(
int gc,
int value)
const;
60 void dxfString(
int gc,
const char* value)
const;
61 void dxfString(
int gc,
const std::string& value)
const;
63 static void strReplace(
char* str,
char src,
char dest);
69 mutable std::ofstream m_ofile;
version
Version numbers for the DXF Format.
Definition dl_codes.h:96
bool openFailed() const
Definition dl_writer_ascii.cpp:49
static void strReplace(char *str, char src, char dest)
Replaces every occurence of src with dest in the null terminated str.
Definition dl_writer_ascii.cpp:148
void close() const
Closes the output file.
Definition dl_writer_ascii.cpp:40
virtual void dxfInt(int gc, int value) const =0
Must be overwritten by the implementing class to write an int value to the file.
virtual void dxfString(int gc, const char *value) const =0
Must be overwritten by the implementing class to write a string to the file.
virtual void dxfReal(int gc, double value) const =0
Must be overwritten by the implementing class to write a real value to the file.
virtual void dxfHex(int gc, int value) const =0
Must be overwritten by the implementing class to write an int value (hex) to the file.
DL_Writer(DL_Codes::version version)
Definition dl_writer.h:63
DL_Codes::version version
DXF version to be created.
Definition dl_writer.h:608