-
Notifications
You must be signed in to change notification settings - Fork 5
/
read_dxf.h
32 lines (21 loc) · 853 Bytes
/
read_dxf.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/* Header file for reading dxf information and basic parsing. Interprting information is found in other files
*/
#ifndef READ_DXF_H
#define READ_DXF_H
#include <vector>
#include <string>
class dxfpair{
public:
dxfpair(int gcode, const char *val);
const std::string &value_str() const { return value; };
const char *value_char() const { return value.c_str(); };
double value_float() const;
int value_int() const;
// Leave this data public
int group_code;
std::string value;
};
//int section(const char* value); // Convert the section titles into integers
std::vector<std::vector<dxfpair> > dxf_get_sections(const char* filename);
std::vector<std::vector<dxfpair> > separate_parts(std::vector<dxfpair> §ion); // Find where the major sections are and break into smaller parts
#endif