mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-22 05:10:53 +00:00
Remove IfcFileWithSchema
This commit is contained in:
+1
-15
@@ -174,7 +174,7 @@ public:
|
|||||||
IfcUtil::IfcBaseClass* instance_by_id(int id);
|
IfcUtil::IfcBaseClass* instance_by_id(int id);
|
||||||
|
|
||||||
/// Returns the entity with the specified GlobalId
|
/// Returns the entity with the specified GlobalId
|
||||||
virtual IfcUtil::IfcBaseClass* instance_by_guid(const std::string& guid);
|
IfcUtil::IfcBaseClass* instance_by_guid(const std::string& guid);
|
||||||
|
|
||||||
/// Performs a depth-first traversal, returning all entity instance
|
/// Performs a depth-first traversal, returning all entity instance
|
||||||
/// attributes as a flat list. NB: includes the root instance specified
|
/// attributes as a flat list. NB: includes the root instance specified
|
||||||
@@ -216,20 +216,6 @@ public:
|
|||||||
void build_inverses();
|
void build_inverses();
|
||||||
};
|
};
|
||||||
|
|
||||||
template <typename Schema>
|
|
||||||
class IFC_PARSE_API IfcFileWithSchema : public IfcFile {
|
|
||||||
public:
|
|
||||||
std::pair<typename Schema::IfcNamedUnit*, double> getUnit(typename Schema::IfcUnitEnum::Value unit_type) {
|
|
||||||
std::pair<IfcUtil::IfcBaseClass*, double> unit_info = IfcFile::getUnit(Schema::IfcUnitEnum::ToString(unit_type));
|
|
||||||
return std::make_pair(unit_info.first->template as<typename Schema::IfcNamedUnit>(), unit_info.second);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Returns the entity with the specified GlobalId
|
|
||||||
virtual typename Schema::IfcRoot* instance_by_guid(const std::string& guid) {
|
|
||||||
return IfcFile::instance_by_guid(guid)->template as<typename Schema::IfcRoot>();
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
#ifdef WITH_IFCXML
|
#ifdef WITH_IFCXML
|
||||||
IFC_PARSE_API IfcFile* parse_ifcxml(const std::string& filename);
|
IFC_PARSE_API IfcFile* parse_ifcxml(const std::string& filename);
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user