43 #ifndef MY_DXF_FILE_HPP
44 #define MY_DXF_FILE_HPP 1
80 std::string _group_string;
102 MyDXFFile(
const std::string &filename );
110 void read(
const std::string &filename );
114 void write(
const std::string &filename );
128 int wlevel(
void ) {
return( _wlevel ); }
217 int linec(
void )
const {
return( _linec ); }
int64_t group_get_int64(void) const
Get the value of the last group read assuming it is a int64.
DXF tables class.
Definition: mydxftables.hpp:216
int16_t group_get_int16(void) const
Get the value of the last group read assuming it is a int16.
int read_group(void)
Read next group from open file and return group code.
double group_get_double(void) const
Get the value of the last group read assuming it is a double.
const class MyDXFBlocks * get_blocks(void) const
Get a const pointer to the blocks of DXF file.
Definition: mydxffile.hpp:239
int linec(void) const
Get the current line number in DXF file during read.
Definition: mydxffile.hpp:217
bool group_get_bool(void) const
Get the value of the last group read assuming it is a bool.
int wlevel(void)
Get the level of warning messages.
Definition: mydxffile.hpp:128
void read(const std::string &filename)
Read DXF file.
int8_t group_get_int8(void) const
Get the value of the last group read assuming it is a int8.
DXF file class.
Definition: mydxffile.hpp:68
DXF blocks class.
Definition: mydxfblocks.hpp:136
void set_warning_level(int wlevel)
Set the level of warning messages.
Definition: mydxffile.hpp:124
class MyDXFBlocks * get_blocks(void)
Get a pointer to the blocks of DXF file.
Definition: mydxffile.hpp:235
class MyDXFEntities * get_entities(void)
Get a pointer to the entities of DXF file.
Definition: mydxffile.hpp:225
void write_group(int code, const char *data)
Write string group to output file.
MyDXFFile()
Construct empty DXF file.
int32_t group_get_int32(void) const
Get the value of the last group read assuming it is a int32.
class MyDXFTables * get_tables(void)
Get a pointer to the tables of DXF file.
Definition: mydxffile.hpp:244
DXF entity database.
Definition: mydxfentities.hpp:279
void debug_print(std::ostream &os) const
Print debugging information to os.
std::string group_get_string(void) const
Get the value of the last group read assuming it is a string.
const class MyDXFTables * get_tables(void) const
Get a const pointer to the tables of DXF file.
Definition: mydxffile.hpp:248
const class MyDXFEntities * get_entities(void) const
Get a const pointer to the entities of DXF file.
Definition: mydxffile.hpp:229
void write(const std::string &filename)
Write DXF file.
int group_get_code(void) const
Get code of the last group read.