]> Shamusworld >> Repos - architektonas/blob - dxflib/doc/manual/en/reading.xml
Initial import
[architektonas] / dxflib / doc / manual / en / reading.xml
1 <manstyle>
2   <opt name="PageTitle" value="Reading DXF Files" />
3   <section>Reading DXF Files</section>
4   <idx>Reading,Parsing,Creation Interface,DL_CreationAdapter</idx>
5
6   <img src="img/dxflib.png" ref="dxflib01" width="80">dxflib parses DXF files
7   and calls functions in your class. In those functions you can for example add
8   the entities to a vector or list of entities.</img>
9
10   <subsection>Implementing the Creation Interface</subsection>
11
12   <para>Your C++ class that handles DXF entities has to be derived from
13   DL_CreationInterface or DL_CreationAdapter. In most cases DL_CreationAdapter
14   is more convenient because it doesn't force you to implement all
15   functions.</para>
16
17   <includecode src="code/mydxffilter.h" />
18
19   <para>The implementation of the functions in your class will typically add
20   the entities to a container of entities or use the information in another
21   way.</para>
22
23   <includecode src="code/addline.cpp" />
24
25   <newpage />
26
27   <para>When reading a DXF file you simply pass on a reference to an object of
28   your class to the parser.</para>
29
30   <includecode src="code/parse.cpp" />
31 </manstyle>
32