IfcConvert: single point for IFC file parsing and potential parsing error reporting.

This commit is contained in:
Stinkfist0
2017-03-02 14:55:21 +02:00
committed by Thomas Krijnen
parent cd132473f5
commit 026b4853a2
2 changed files with 32 additions and 32 deletions
+3 -4
View File
@@ -147,13 +147,12 @@ namespace IfcGeom {
/// @todo public/private sections all over the place: move all public to the beginning of the class
public:
Iterator(const IteratorSettings& settings, const std::string& filename, std::vector<IfcGeom::filter_t>& filters)
Iterator(const IteratorSettings& settings, IfcParse::IfcFile* file, std::vector<IfcGeom::filter_t>& filters)
: settings(settings)
, ifc_file(new IfcParse::IfcFile)
, owns_ifc_file(true)
, ifc_file(file)
, owns_ifc_file(false)
, filters_(filters)
{
ifc_file->Init(filename);
_initialize();
}