43 #ifndef MY_DXF_TABLES_HPP
44 #define MY_DXF_TABLES_HPP 1
59 std::string _handle_to_owner;
87 virtual void write(
class MyDXFFile *dxf, std::ofstream &ostr ) = 0;
91 virtual void debug_print( std::ostream &os )
const = 0;
105 int8_t _explodability;
107 std::string _handle_to_layout;
125 virtual void debug_print( std::ostream &os )
const;
136 std::string _linetype;
142 std::string _handle_to_plot_style_name;
143 std::string _handle_to_material;
157 const std::string &
name(
void )
const {
return( _name ); }
169 virtual void debug_print( std::ostream &os )
const;
180 std::string _handle_to_owner;
182 std::vector<MyDXFTableEntry *> _entries;
191 uint32_t
size()
const {
return( _entries.size() ); }
virtual ~MyDXFTableEntryBlockRecord()
Virtual destructor.
DXF tables class.
Definition: mydxftables.hpp:216
DXF table entry for block record table.
Definition: mydxftables.hpp:100
virtual void debug_print(std::ostream &os) const
Print debugging information to os.
MyDXFTableEntryLayer(class MyDXFFile *dxf)
Construct entry by reading from DXF file.
friend std::ostream & operator<<(std::ostream &os, const MyDXFTableEntry &e)
MyDXFTable(const std::string &name, class MyDXFFile *dxf)
void write(class MyDXFFile *dxf, std::ofstream &ostr)
Write dxf file to stream.
const MyDXFTableEntry * get_entry(uint32_t a) const
Return const pointer to entry a.
Definition: mydxftables.hpp:195
const MyDXFTable * get_layers_table(void) const
Return const pointer to layers table.
Definition: mydxftables.hpp:229
MyDXFTableEntry()
Constructor.
DXF file class.
Definition: mydxffile.hpp:68
const std::string & name(void) const
Return layer name.
Definition: mydxftables.hpp:157
MyDXFTableEntry * get_entry(uint32_t a)
Return pointer to entry a.
Definition: mydxftables.hpp:199
uint32_t size() const
Return number of table entries.
Definition: mydxftables.hpp:191
DXF table class.
Definition: mydxftables.hpp:176
DXF table entry for layer table.
Definition: mydxftables.hpp:132
DXF table entry.
Definition: mydxftables.hpp:55
virtual void debug_print(std::ostream &os) const
Print debugging information to os.
void write(class MyDXFFile *dxf, std::ofstream &ostr)
Write dxf file to stream.
MyDXFTables(class MyDXFFile *dxf)
void debug_print_common(std::ostream &os) const
Debug print common groups.
virtual void write(class MyDXFFile *dxf, std::ofstream &ostr)
Write dxf file to stream.
virtual void write(class MyDXFFile *dxf, std::ofstream &ostr)
Write dxf file to stream.
virtual ~MyDXFTableEntryLayer()
Virtual destructor.
void debug_print(std::ostream &os) const
Print debugging information to os.
virtual void debug_print(std::ostream &os) const =0
Print debugging information to os.
virtual void write(class MyDXFFile *dxf, std::ofstream &ostr)=0
Write dxf file to stream.
void set_name(const std::string &name)
Return layer name.
Definition: mydxftables.hpp:161
void debug_print(std::ostream &os) const
Print debugging information to os.
MyDXFTable * get_layers_table(void)
Return pointer to layers table.
Definition: mydxftables.hpp:233
MyDXFTableEntryBlockRecord(class MyDXFFile *dxf)
Construct entry by reading from DXF file.
virtual ~MyDXFTableEntry()
Virtual destructor.
Definition: mydxftables.hpp:83
void process_group(class MyDXFFile *dxf)
Process group not belonging to the child entry.
void write_common(class MyDXFFile *dxf, std::ofstream &ostr)
Write common groups.