forked from DomCR/ACadSharp
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
66 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,16 @@ | ||
using ACadSharp.IO.Templates; | ||
using ACadSharp.Tables; | ||
using System.Collections.Generic; | ||
|
||
namespace ACadSharp.IO.DXF | ||
{ | ||
internal class DxfDocumentBuilder : CadDocumentBuilder | ||
{ | ||
public DxfDocumentBuilder(CadDocument document, NotificationEventHandler notification = null) : base(document, notification) | ||
public DxfDocumentBuilder(CadDocument document, NotificationEventHandler notification = null) : base(document, notification) { } | ||
|
||
public override void BuildDocument() | ||
{ | ||
base.BuildDocument(); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
using ACadSharp.IO.Templates; | ||
using System; | ||
|
||
namespace ACadSharp.IO.DXF | ||
{ | ||
internal class DxfObjectsSectionReader : DxfSectionReaderBase | ||
{ | ||
public DxfObjectsSectionReader(IDxfStreamReader reader, DxfDocumentBuilder builder, NotificationEventHandler notification = null) | ||
: base(reader, builder, notification) | ||
{ | ||
} | ||
|
||
public override void Read() | ||
{ | ||
//Advance to the first value in the section | ||
this._reader.ReadNext(); | ||
|
||
//Loop until the section ends | ||
while (this._reader.LastValueAsString != DxfFileToken.EndSection) | ||
{ | ||
CadTemplate template = this.readObject(); | ||
|
||
if (template == null) | ||
continue; | ||
|
||
//Add the object and the template to the builder | ||
this._builder.Templates[template.CadObject.Handle] = template; | ||
} | ||
} | ||
|
||
private CadTemplate readObject() | ||
{ | ||
throw new NotImplementedException(); | ||
} | ||
} | ||
} |