File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -54,17 +54,17 @@ int main(int argc, char** argv) {
5454 // we need to cast them to IfcWindows. Since these properties
5555 // are optional we need to make sure the properties are
5656 // defined for the window in question before accessing them.
57- IfcBuildingElement::list elements = file.EntitiesByType <IfcBuildingElement>();
57+ IfcBuildingElement::list::ptr elements = file.EntitiesByType <IfcBuildingElement>();
5858
5959 std::cout << " Found " << elements->Size () << " elements in " << argv[1 ] << " :" << std::endl;
6060
61- for ( IfcBuildingElement::it it = elements->begin (); it != elements->end (); ++ it ) {
61+ for ( IfcBuildingElement::list:: it it = elements->begin (); it != elements->end (); ++ it ) {
6262
63- const IfcBuildingElement::ptr element = *it;
63+ const IfcBuildingElement* element = *it;
6464 std::cout << element->entity ->toString () << std::endl;
6565
6666 if ( element->is (IfcWindow::Class ()) ) {
67- const IfcWindow::ptr window = (IfcWindow*)element;
67+ const IfcWindow* window = (IfcWindow*)element;
6868
6969 if ( window->hasOverallWidth () && window->hasOverallHeight () ) {
7070 const double area = window->OverallWidth ()*window->OverallHeight ();
You can’t perform that action at this time.
0 commit comments