CFx SDK Documentation 2026 SP0
Loading...
Searching...
No Matches
IfcPropertySetFiller.h
Go to the documentation of this file.
1
2// Copyright (C) 2002-2024, Open Design Alliance (the "Alliance").
3// All rights reserved.
4//
5// This software and its documentation and related materials are owned by
6// the Alliance. The software may only be incorporated into application
7// programs owned by members of the Alliance, subject to a signed
8// Membership Agreement and Supplemental Software License Agreement with the
9// Alliance. The structure and organization of this software are the valuable
10// trade secrets of the Alliance and its suppliers. The software is also
11// protected by copyright law and international treaty provisions. Application
12// programs incorporating this software must include the following statement
13// with their copyright notices:
14//
15// This application incorporates Open Design Alliance software pursuant to a license
16// agreement with Open Design Alliance.
17// Open Design Alliance Copyright (C) 2002-2024 by Open Design Alliance.
18// All rights reserved.
19//
20// By use of this software, its documentation or related materials, you
21// acknowledge and accept the above terms.
23
24#ifndef _IFC_PROPERTY_SET_FILLER_H
25#define _IFC_PROPERTY_SET_FILLER_H
26
27#include "IfcBuilder.h"
28#include "IfcSimpleTypes.h"
29
31
36{
37protected:
38
41 OdIfc::OdIfcInstancePtr objectDefinition);
42
43 OdIfc::OdIfcInstancePtr m_objectDefinition;
44 OdIfc::OdIfcInstancePtr m_propertySet;
45
46 OdDAIObjectIds m_idProperties;
47
48public:
49
51
56 OdIfc::OdIfcInstancePtr getObjectDefinition() { return m_objectDefinition; };
57
62 OdIfc::OdIfcInstancePtr getPropertySet() { return m_propertySet; };
63
71 IfcPropertySetFiller& appendPropertySingleValue(const OdAnsiString &name, OdRxValue val, const OdAnsiString &typePath);
72
78 OdIfc::OdIfcInstancePtr createRelDefinesPropertySet(const OdAnsiString &name);
79
85 OdIfc::OdIfcInstancePtr createPropertySet(const OdAnsiString& name);
86
94 template <typename TValueType>
95 IfcPropertySetFiller& appendPropertySingleValue(const OdAnsiString& IfcType, const OdString& name, const TValueType& value)
96 {
97 OdIfc::OdIfcInstancePtr ptrProperty = createPropertySingleValue(name);
98
99 {
100 OdRxValue boolVal;
101 boolVal << value;
103 OdRxValue nominalValue(specsType, boolVal);
104 ptrProperty->putAttrCaseInsensitive("NominalValue", nominalValue);
105 }
106
107 return *this;
108 }
109
117
125
133
141
149
157
164
170 OdIfc::OdIfcInstancePtr createPropertySingleValue(const OdString & name);
171
172 friend class OdIfcModelFiller;
173};
174
179
180#endif // _IFC_PROPERTY_SET_FILLER_H
#define IFCCORE_EXPORT
OdSmartPtr< IfcPropertySetFiller > IfcPropertySetFillerPtr
OdIfcModelFiller * filler()
Definition IfcBuilder.h:52
OdIfc::OdIfcInstancePtr m_objectDefinition
IfcPropertySetFiller & appendPropertySingleValue(const OdString &name, const OdIfc::IfcBoolean &value)
OdIfc::OdIfcInstancePtr getPropertySet()
IfcPropertySetFiller & appendPropertySingleValue(const OdString &name, const OdIfc::IfcLogical &value)
IfcPropertySetFiller & appendPropertySingleValue(const OdString &name, const OdIfc::IfcLabel &value)
static OdSmartPtr< IfcPropertySetFiller > createObject(OdIfcModelFiller *filler, OdIfc::OdIfcInstancePtr objectDefinition)
IfcPropertySetFiller & appendPropertySingleValue(const OdString &name)
IfcPropertySetFiller & appendPropertySingleValue(const OdString &name, const OdIfc::IfcInteger &value)
OdIfc::OdIfcInstancePtr createRelDefinesPropertySet(const OdAnsiString &name)
OdIfc::OdIfcInstancePtr getObjectDefinition()
IfcPropertySetFiller & appendPropertySingleValue(const OdString &name, const OdString &value)
IfcPropertySetFiller & appendPropertySingleValue(const OdString &name, const OdIfc::IfcReal &value)
ODRX_DECLARE_MEMBERS(IfcPropertySetFiller)
IfcPropertySetFiller & appendPropertySingleValue(const OdAnsiString &IfcType, const OdString &name, const TValueType &value)
OdIfc::OdIfcInstancePtr m_propertySet
OdIfc::OdIfcInstancePtr createPropertySingleValue(const OdString &name)
IfcPropertySetFiller & appendPropertySingleValue(const OdAnsiString &name, OdRxValue val, const OdAnsiString &typePath)
OdIfc::OdIfcInstancePtr createPropertySet(const OdAnsiString &name)
GLuint const GLchar * name
Definition gles2_ext.h:265
GLsizei const GLfloat * value
Definition gles2_ext.h:302
bool IfcBoolean
OdAnsiString IfcLabel
int IfcInteger
OdDAI::Logical IfcLogical
double IfcReal
static const OdRxValueType & value()