|
26 | 26 |
|
27 | 27 | #include <boost/optional.hpp> |
28 | 28 |
|
29 | | -#include "../ifcparse/IfcParse_Export.h" |
| 29 | +#include "../ifcparse/ifc_parse_api.h" |
30 | 30 |
|
31 | 31 | #include "../ifcparse/IfcUtil.h" |
32 | 32 | #include "../ifcparse/IfcException.h" |
|
64 | 64 | #ifndef %(schema_name_upper)sENUM_H |
65 | 65 | #define %(schema_name_upper)sENUM_H |
66 | 66 |
|
67 | | -#include "../ifcparse/IfcParse_Export.h" |
| 67 | +#include "../ifcparse/ifc_parse_api.h" |
68 | 68 |
|
69 | 69 | #include <boost/optional.hpp> |
70 | 70 |
|
|
76 | 76 | typedef enum { |
77 | 77 | %(types)s, UNDEFINED |
78 | 78 | } Enum; |
79 | | - IfcParse_EXPORT boost::optional<Enum> Parent(Enum v); |
80 | | - IfcParse_EXPORT Enum FromString(const std::string& s); |
81 | | - IfcParse_EXPORT std::string ToString(Enum v); |
82 | | - IfcParse_EXPORT bool IsSimple(Enum v); |
| 79 | + IFC_PARSE_API boost::optional<Enum> Parent(Enum v); |
| 80 | + IFC_PARSE_API Enum FromString(const std::string& s); |
| 81 | + IFC_PARSE_API std::string ToString(Enum v); |
| 82 | + IFC_PARSE_API bool IsSimple(Enum v); |
83 | 83 | } |
84 | 84 |
|
85 | 85 | } |
|
93 | 93 |
|
94 | 94 | #define IfcSchema %(schema_name)s |
95 | 95 |
|
96 | | -#include "../ifcparse/IfcParse_Export.h" |
| 96 | +#include "../ifcparse/ifc_parse_api.h" |
97 | 97 | #include "../ifcparse/IfcUtil.h" |
98 | 98 | #include "../ifcparse/IfcEntityDescriptor.h" |
99 | 99 | #include "../ifcparse/IfcWritableEntity.h" |
100 | 100 |
|
101 | 101 | namespace %(schema_name)s { |
102 | 102 | namespace Type { |
103 | | - IfcParse_EXPORT int GetAttributeCount(Enum t); |
104 | | - IfcParse_EXPORT int GetAttributeIndex(Enum t, const std::string& a); |
105 | | - IfcParse_EXPORT IfcUtil::ArgumentType GetAttributeType(Enum t, unsigned char a); |
106 | | - IfcParse_EXPORT Enum GetAttributeEntity(Enum t, unsigned char a); |
107 | | - IfcParse_EXPORT const std::string& GetAttributeName(Enum t, unsigned char a); |
108 | | - IfcParse_EXPORT bool GetAttributeOptional(Enum t, unsigned char a); |
109 | | - IfcParse_EXPORT bool GetAttributeDerived(Enum t, unsigned char a); |
110 | | - IfcParse_EXPORT std::pair<const char*, int> GetEnumerationIndex(Enum t, const std::string& a); |
111 | | - IfcParse_EXPORT std::pair<Enum, unsigned> GetInverseAttribute(Enum t, const std::string& a); |
112 | | - IfcParse_EXPORT std::set<std::string> GetInverseAttributeNames(Enum t); |
113 | | - IfcParse_EXPORT void PopulateDerivedFields(IfcWrite::IfcWritableEntity* e); |
| 103 | + IFC_PARSE_API int GetAttributeCount(Enum t); |
| 104 | + IFC_PARSE_API int GetAttributeIndex(Enum t, const std::string& a); |
| 105 | + IFC_PARSE_API IfcUtil::ArgumentType GetAttributeType(Enum t, unsigned char a); |
| 106 | + IFC_PARSE_API Enum GetAttributeEntity(Enum t, unsigned char a); |
| 107 | + IFC_PARSE_API const std::string& GetAttributeName(Enum t, unsigned char a); |
| 108 | + IFC_PARSE_API bool GetAttributeOptional(Enum t, unsigned char a); |
| 109 | + IFC_PARSE_API bool GetAttributeDerived(Enum t, unsigned char a); |
| 110 | + IFC_PARSE_API std::pair<const char*, int> GetEnumerationIndex(Enum t, const std::string& a); |
| 111 | + IFC_PARSE_API std::pair<Enum, unsigned> GetInverseAttribute(Enum t, const std::string& a); |
| 112 | + IFC_PARSE_API std::set<std::string> GetInverseAttributeNames(Enum t); |
| 113 | + IFC_PARSE_API void PopulateDerivedFields(IfcWrite::IfcWritableEntity* e); |
114 | 114 | }} |
115 | 115 |
|
116 | 116 | #endif |
|
357 | 357 | derived_field_statement_attrs = 'idxs.insert(%d); ' |
358 | 358 |
|
359 | 359 | simpletype = """%(documentation)s |
360 | | -class IfcParse_EXPORT %(name)s : public %(superclass)s { |
| 360 | +class IFC_PARSE_API %(name)s : public %(superclass)s { |
361 | 361 | public: |
362 | 362 | virtual IfcUtil::ArgumentType getArgumentType(unsigned int i) const; |
363 | 363 | virtual Argument* getArgument(unsigned int i) const; |
@@ -390,13 +390,13 @@ class IfcParse_EXPORT %(name)s : public %(superclass)s { |
390 | 390 | enumeration = """namespace %(name)s { |
391 | 391 | %(documentation)s |
392 | 392 | typedef enum {%(values)s} %(name)s; |
393 | | -IfcParse_EXPORT const char* ToString(%(name)s v); |
394 | | -IfcParse_EXPORT %(name)s FromString(const std::string& s); |
| 393 | +IFC_PARSE_API const char* ToString(%(name)s v); |
| 394 | +IFC_PARSE_API %(name)s FromString(const std::string& s); |
395 | 395 | } |
396 | 396 | """ |
397 | 397 |
|
398 | 398 | entity = """%(documentation)s |
399 | | -class IfcParse_EXPORT %(name)s %(superclass)s{ |
| 399 | +class IFC_PARSE_API %(name)s %(superclass)s{ |
400 | 400 | public: |
401 | 401 | %(attributes)s virtual unsigned int getArgumentCount() const { return %(argument_count)d; } |
402 | 402 | virtual IfcUtil::ArgumentType getArgumentType(unsigned int i) const {%(argument_type_function_body)s} |
|
0 commit comments