-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathblocks.h
39 lines (29 loc) · 826 Bytes
/
blocks.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
33
34
35
36
37
38
39
/* Read Blocks from file and convert to vectors of entities
Matt Squires
Google SOC 2005
*/
#ifndef DXF_BLOCKS_H
#define DXF_BLOCKS_H
#include "read_dxf.h"
#include "entities.h"
#include <vector>
#include <string>
class block : public entity, public entities{// : public entities, {
public:
block(const std::vector<std::vector<dxfpair> > §ions); // Group all of the blocks as entities
const char* name() const;
//void blocks_display();
protected:
std::string block_name;
double rotation;
private:
void block_info(const std::vector<dxfpair> &info);
};
class blocks{
public:
blocks(const std::vector<std::vector<dxfpair> > §ions);
const block &ret_block(const char *block_name) const;
protected:
std::vector<block > blocks_blocks;
};
#endif