Skip to content

Commit 636b2aa

Browse files
atibautaothms
authored andcommitted
1) Added support for IFC4x1 (see issue IfcOpenShell#504 (comment)).
2) New build parameters (flags) introduced for use of IFC4x1 and IFC4x2: USE_IFC4X2 (for use of IfcBridge), USE_IFC4X1 (for use of IfcAlignment) This explains new parameters (flags): #ifdef USE_IFC4X2 #include "../ifcparse/Ifc4x2enum.h" #elif USE_IFC4X1 #include "../ifcparse/Ifc4x1enum.h" #elif USE_IFC4 #include "../ifcparse/Ifc4enum.h" #else #include "../ifcparse/Ifc2x3enum.h" #endif 3) Added comment block "This file is part of IfcOpenShell. ..." at the beggining of the Ifc4x2* files.
1 parent cee2c4e commit 636b2aa

File tree

13 files changed

+82252
-5
lines changed

13 files changed

+82252
-5
lines changed

src/ifcparse/Argument.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,11 @@
2828

2929
#include "ifc_parse_api.h"
3030

31-
#ifdef USE_IFC4
31+
#ifdef USE_IFC4X2
32+
#include "../ifcparse/Ifc4x2enum.h"
33+
#elif USE_IFC4X1
34+
#include "../ifcparse/Ifc4x1enum.h"
35+
#elif USE_IFC4
3236
#include "../ifcparse/Ifc4enum.h"
3337
#else
3438
#include "../ifcparse/Ifc2x3enum.h"

src/ifcparse/Ifc4x1-schema.cpp

Lines changed: 15270 additions & 0 deletions
Large diffs are not rendered by default.

src/ifcparse/Ifc4x1.cpp

Lines changed: 16117 additions & 0 deletions
Large diffs are not rendered by default.

src/ifcparse/Ifc4x1.h

Lines changed: 50696 additions & 0 deletions
Large diffs are not rendered by default.

src/ifcparse/Ifc4x1enum.h

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
/********************************************************************************
2+
* *
3+
* This file is part of IfcOpenShell. *
4+
* *
5+
* IfcOpenShell is free software: you can redistribute it and/or modify *
6+
* it under the terms of the Lesser GNU General Public License as published by *
7+
* the Free Software Foundation, either version 3.0 of the License, or *
8+
* (at your option) any later version. *
9+
* *
10+
* IfcOpenShell is distributed in the hope that it will be useful, *
11+
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
12+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
13+
* Lesser GNU General Public License for more details. *
14+
* *
15+
* You should have received a copy of the Lesser GNU General Public License *
16+
* along with this program. If not, see <http://www.gnu.org/licenses/>. *
17+
* *
18+
********************************************************************************/
19+
20+
/********************************************************************************
21+
* *
22+
* This file has been generated from IFC4x1.exp. Do not make modifications *
23+
* but instead modify the python script that has been used to generate this. *
24+
* *
25+
********************************************************************************/
26+
27+
#ifndef IFC4X1ENUM_H
28+
#define IFC4X1ENUM_H
29+
30+
#include "../ifcparse/ifc_parse_api.h"
31+
32+
#include <string>
33+
#include <boost/optional.hpp>
34+
35+
#endif

src/ifcparse/Ifc4x2-schema.cpp

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,28 @@
1+
/********************************************************************************
2+
* *
3+
* This file is part of IfcOpenShell. *
4+
* *
5+
* IfcOpenShell is free software: you can redistribute it and/or modify *
6+
* it under the terms of the Lesser GNU General Public License as published by *
7+
* the Free Software Foundation, either version 3.0 of the License, or *
8+
* (at your option) any later version. *
9+
* *
10+
* IfcOpenShell is distributed in the hope that it will be useful, *
11+
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
12+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
13+
* Lesser GNU General Public License for more details. *
14+
* *
15+
* You should have received a copy of the Lesser GNU General Public License *
16+
* along with this program. If not, see <http://www.gnu.org/licenses/>. *
17+
* *
18+
********************************************************************************/
19+
20+
/********************************************************************************
21+
* *
22+
* This file has been generated from IFC4x2.exp Draft. Do not make modifications *
23+
* but instead modify the python script that has been used to generate this. *
24+
* *
25+
********************************************************************************/
126

227
#include "../ifcparse/IfcSchema.h"
328
#include "../ifcparse/Ifc4x2.h"

src/ifcparse/Ifc4x2.cpp

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,28 @@
1+
/********************************************************************************
2+
* *
3+
* This file is part of IfcOpenShell. *
4+
* *
5+
* IfcOpenShell is free software: you can redistribute it and/or modify *
6+
* it under the terms of the Lesser GNU General Public License as published by *
7+
* the Free Software Foundation, either version 3.0 of the License, or *
8+
* (at your option) any later version. *
9+
* *
10+
* IfcOpenShell is distributed in the hope that it will be useful, *
11+
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
12+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
13+
* Lesser GNU General Public License for more details. *
14+
* *
15+
* You should have received a copy of the Lesser GNU General Public License *
16+
* along with this program. If not, see <http://www.gnu.org/licenses/>. *
17+
* *
18+
********************************************************************************/
19+
20+
/********************************************************************************
21+
* *
22+
* This file has been generated from IFC4x2.exp Draft. Do not make modifications *
23+
* but instead modify the python script that has been used to generate this. *
24+
* *
25+
********************************************************************************/
126

227
#include "../ifcparse/Ifc4x2.h"
328
#include "../ifcparse/IfcSchema.h"

src/ifcparse/Ifc4x2.h

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,28 @@
1+
/********************************************************************************
2+
* *
3+
* This file is part of IfcOpenShell. *
4+
* *
5+
* IfcOpenShell is free software: you can redistribute it and/or modify *
6+
* it under the terms of the Lesser GNU General Public License as published by *
7+
* the Free Software Foundation, either version 3.0 of the License, or *
8+
* (at your option) any later version. *
9+
* *
10+
* IfcOpenShell is distributed in the hope that it will be useful, *
11+
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
12+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
13+
* Lesser GNU General Public License for more details. *
14+
* *
15+
* You should have received a copy of the Lesser GNU General Public License *
16+
* along with this program. If not, see <http://www.gnu.org/licenses/>. *
17+
* *
18+
********************************************************************************/
19+
20+
/********************************************************************************
21+
* *
22+
* This file has been generated from IFC4x2.exp Draft. Do not make modifications *
23+
* but instead modify the python script that has been used to generate this. *
24+
* *
25+
********************************************************************************/
126

227
#ifndef IFC4X2_H
328
#define IFC4X2_H

src/ifcparse/Ifc4x2enum.h

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,28 @@
1+
/********************************************************************************
2+
* *
3+
* This file is part of IfcOpenShell. *
4+
* *
5+
* IfcOpenShell is free software: you can redistribute it and/or modify *
6+
* it under the terms of the Lesser GNU General Public License as published by *
7+
* the Free Software Foundation, either version 3.0 of the License, or *
8+
* (at your option) any later version. *
9+
* *
10+
* IfcOpenShell is distributed in the hope that it will be useful, *
11+
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
12+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
13+
* Lesser GNU General Public License for more details. *
14+
* *
15+
* You should have received a copy of the Lesser GNU General Public License *
16+
* along with this program. If not, see <http://www.gnu.org/licenses/>. *
17+
* *
18+
********************************************************************************/
19+
20+
/********************************************************************************
21+
* *
22+
* This file has been generated from IFC4x2.exp (Draft). Do not make modifications *
23+
* but instead modify the python script that has been used to generate this. *
24+
* *
25+
********************************************************************************/
126

227
#ifndef IFC4X2ENUM_H
328
#define IFC4X2ENUM_H

src/ifcparse/IfcBaseClass.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,11 @@
2222

2323
#include "ifc_parse_api.h"
2424

25-
#ifdef USE_IFC4
25+
#ifdef USE_IFC4X2
26+
#include "../ifcparse/Ifc4x2enum.h"
27+
#elif USE_IFC4X1
28+
#include "../ifcparse/Ifc4x1enum.h"
29+
#elif USE_IFC4
2630
#include "../ifcparse/Ifc4enum.h"
2731
#else
2832
#include "../ifcparse/Ifc2x3enum.h"

0 commit comments

Comments
 (0)