2 <opt name="PageTitle" value="Reading DXF Files" />
3 <section>Reading DXF Files</section>
4 <idx>Reading,Parsing,Creation Interface,DL_CreationAdapter</idx>
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>
10 <subsection>Implementing the Creation Interface</subsection>
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
17 <includecode src="code/mydxffilter.h" />
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
23 <includecode src="code/addline.cpp" />
27 <para>When reading a DXF file you simply pass on a reference to an object of
28 your class to the parser.</para>
30 <includecode src="code/parse.cpp" />