summaryrefslogtreecommitdiffstats
path: root/src/extension/dxf2svg/read_dxf.h
blob: 0708b6ce101256e7e4a41f71937d17aa56dc1fb3 (plain)
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
/* 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>



class dxfpair{	
	public:
	dxfpair(int gcode, char val[10000]);
	~dxfpair();
	char * value_char(char *string);
	
	// Leave this data public	
	int group_code;
	std::vector< char > value;
};




int section(char* value);  // Convert the section titles into integers

std::vector< std::vector< dxfpair > > dxf_get_sections(char* filename);

std::vector< std::vector< dxfpair > > separate_parts( std::vector< dxfpair > section );  // Find where the major sections are and break into smaller parts

#endif