1 /* Header file for reading dxf information and basic parsing. Interprting information is found in other files
2 */
4 #ifndef READ_DXF_H
5 #define READ_DXF_H
7 #include<vector>
11 class dxfpair{
12 public:
13 dxfpair(int gcode, char val[10000]);
14 ~dxfpair();
15 char * value_char(char *string);
17 // Leave this data public
18 int group_code;
19 std::vector< char > value;
20 };
25 int section(char* value); // Convert the section titles into integers
27 std::vector< std::vector< dxfpair > > dxf_get_sections(char* filename);
29 std::vector< std::vector< dxfpair > > separate_parts( std::vector< dxfpair > section ); // Find where the major sections are and break into smaller parts
31 #endif