Skip to content

Commit 7066337

Browse files
committed
Update IfcParseExamples
1 parent 948d767 commit 7066337

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/examples/IfcParseExamples.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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();

0 commit comments

Comments
 (0)