-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy pathDocument.cs
More file actions
44 lines (43 loc) · 724 Bytes
/
Document.cs
File metadata and controls
44 lines (43 loc) · 724 Bytes
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
40
41
42
43
44
using System;
using System.Collections;
namespace DXFLibrary
{
/// <summary>
/// The representation of a dxf document.
/// </summary>
public class Document
{
internal Header header;
internal Entities entities;
internal Blocks blocks;
internal Tables tables;
public Document()
{
this.entities = new Entities();
}
public void SetHeader(Header h)
{
this.header = h;
}
public void SetEntities(Entities e)
{
this.entities = e;
}
public void SetBlocks(Blocks b)
{
this.blocks = b;
}
public void SetTables(Tables t)
{
this.tables = t;
}
public void add(Entity e)
{
this.entities.AddEntity(e);
}
public void add(Block b)
{
this.blocks.addBlock(b);
}
}
}