mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-27 10:51:13 +00:00
Commit remainder of fixes to IfcParseExamples
This commit is contained in:
@@ -58,9 +58,9 @@ struct is_ifc4_or_higher<T, std::void_t<decltype(T::IfcMaterialDefinition)>> : s
|
|||||||
typedef std::map<std::string, std::map<std::string, std::string>> element_properties;
|
typedef std::map<std::string, std::map<std::string, std::string>> element_properties;
|
||||||
|
|
||||||
#ifdef SCHEMA_HAS_IfcBuildingElement
|
#ifdef SCHEMA_HAS_IfcBuildingElement
|
||||||
typedef IfcSchema::IfcBuildingElement element_t
|
typedef IfcSchema::IfcBuildingElement element_t;
|
||||||
#else
|
#else
|
||||||
typedef IfcSchema::IfcBuiltElement element_t
|
typedef IfcSchema::IfcBuiltElement element_t;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
std::string format_string(const AttributeValue& argument) {
|
std::string format_string(const AttributeValue& argument) {
|
||||||
@@ -242,7 +242,7 @@ int main(int argc, char** argv) {
|
|||||||
// we need to cast them to IfcWindows. Since these properties
|
// we need to cast them to IfcWindows. Since these properties
|
||||||
// are optional we need to make sure the properties are
|
// are optional we need to make sure the properties are
|
||||||
// defined for the window in question before accessing them.
|
// defined for the window in question before accessing them.
|
||||||
example_element_type::list::ptr elements = file.instances_by_type<example_element_type>();
|
auto elements = file.instances_by_type<element_t>();
|
||||||
|
|
||||||
std::cout << "Found " << elements->size() << " elements in " << argv[1] << ":" << std::endl;
|
std::cout << "Found " << elements->size() << " elements in " << argv[1] << ":" << std::endl;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user