CFx SDK Documentation 2026 SP0
Loading...
Searching...
No Matches
IfcPsdQto.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_PSD_QTO_H
25#define _IFC_PSD_QTO_H
26
27#include "IfcBuildOptions.h"
28#include "daiModel.h"
29#include "OdArray.h"
30
31class PSDQTOImpl;
32
37{
38public:
39
44 PSDQTO(const char* applicableVersion = nullptr);
45
50
55 OdDAI::SchemaPtr getSchema() const;
56
61 OdDAI::ModelPtr getModel() const;
62
67 const OdAnsiString& getName() const;
68
73 const OdAnsiString& getComment() const;
74
79 void setName(const OdAnsiString& value);
80
85 void setComment(const OdAnsiString& value);
86
90 void Clear();
91
97 OdResult importFromXML(const char* fileName);
98
105 OdResult exportToXML(const OdDAI::ApplicationInstance* psdqtoInstance, const char* fileName);
106
113 bool getApplicablePSD(const OdDAI::ApplicationInstance* ifcInstance, OdDAIObjectIds& ids) const;
114
121 bool getApplicableQTO(const OdDAI::ApplicationInstance* ifcInstance, OdDAIObjectIds& ids) const;
122
129 bool getApplicable(const OdDAI::ApplicationInstance* ifcInstance, OdDAIObjectIds& ids) const;
130
140 bool getApplicable(const char* applicableClassName, OdDAIObjectIds& ids) const;
141
150 bool getApplicable(const OdDAI::Entity* ifcEntity, const char* predefinedType, OdDAIObjectIds& ids) const;
151
157 bool isApplicablePSD(const OdDAI::ApplicationInstance* ifcInstance) const;
158
164 bool isApplicableQTO(const OdDAI::ApplicationInstance* ifcInstance) const;
165
171 OdResult readFile(const OdString& fileName);
172
178 OdResult writeFile(const OdString& fileName);
179
180private:
181 PSDQTOImpl* m_pImpl;
182};
183
185
186/* PSDQTOList */
187
189{
190public:
192
197
202
203 void clear();
204
211 {
212 return m_psdqto.length();
213 }
214
220 bool isEmpty() const
221 {
222 return m_psdqto.isEmpty();
223 }
224
229 PSDQTO* operator [](size_type index)
230 {
231 return m_psdqto[index].get();
232 }
233
238 const PSDQTO* operator [](size_type index) const
239 {
240 return m_psdqto[index].get();
241 }
242
250 {
251 return m_psdqto.at(index).get();
252 }
253
260 const PSDQTO* at(size_type index) const
261 {
262 return m_psdqto.at(index).get();
263 }
264
272 {
273 m_psdqto.setAt(index, value);
274 }
275
283 {
284 return m_psdqto.getAt(index).get();
285 }
286
294 {
295 return m_psdqto.append(value);
296 }
297
313 {
314 m_psdqto.insertAt(index, value);
315 }
316
327 {
328 m_psdqto.removeAt(index);
329 }
330
337 void swap(size_type firstIndex, size_type secondIndex)
338 {
339 m_psdqto.swap(firstIndex, secondIndex);
340 }
341
351 const OdString& fileName,
352 const char* name = nullptr,
353 const char* comment = nullptr,
354 const char* applicableVersion = nullptr);
355
356private:
357 OdArray<PSDQTOPtr> m_psdqto;
358};
359
364
365#endif //_IFC_PSD_QTO_H
#define IFCCORETOOLS_EXPORT
OdSharedPtr< PSDQTO > PSDQTOPtr
Definition IfcPsdQto.h:184
OdSharedPtr< PSDQTOList > PSDQTOListPtr
Definition IfcPsdQto.h:363
OdResult
Definition OdResult.h:29
typename A::size_type size_type
Definition OdArray.h:837
bool isApplicableQTO(const OdDAI::ApplicationInstance *ifcInstance) const
const OdAnsiString & getName() const
bool getApplicable(const char *applicableClassName, OdDAIObjectIds &ids) const
bool getApplicablePSD(const OdDAI::ApplicationInstance *ifcInstance, OdDAIObjectIds &ids) const
bool isApplicablePSD(const OdDAI::ApplicationInstance *ifcInstance) const
void setComment(const OdAnsiString &value)
bool getApplicableQTO(const OdDAI::ApplicationInstance *ifcInstance, OdDAIObjectIds &ids) const
OdResult writeFile(const OdString &fileName)
const OdAnsiString & getComment() const
OdDAI::ModelPtr getModel() const
PSDQTO(const char *applicableVersion=nullptr)
bool getApplicable(const OdDAI::Entity *ifcEntity, const char *predefinedType, OdDAIObjectIds &ids) const
OdDAI::SchemaPtr getSchema() const
OdResult exportToXML(const OdDAI::ApplicationInstance *psdqtoInstance, const char *fileName)
bool getApplicable(const OdDAI::ApplicationInstance *ifcInstance, OdDAIObjectIds &ids) const
void setName(const OdAnsiString &value)
OdResult readFile(const OdString &fileName)
OdResult importFromXML(const char *fileName)
void Clear()
const PSDQTO * at(size_type index) const
Definition IfcPsdQto.h:260
PSDQTO * loadFromFile(const OdString &fileName, const char *name=nullptr, const char *comment=nullptr, const char *applicableVersion=nullptr)
size_type append(PSDQTO *value)
Definition IfcPsdQto.h:293
const PSDQTO * getAt(size_type index) const
Definition IfcPsdQto.h:282
bool isEmpty() const
Definition IfcPsdQto.h:220
PSDQTO * at(size_type index)
Definition IfcPsdQto.h:249
void swap(size_type firstIndex, size_type secondIndex)
Definition IfcPsdQto.h:337
OdArray< PSDQTOPtr >::size_type size_type
Definition IfcPsdQto.h:191
size_type length() const
Definition IfcPsdQto.h:210
void insertAt(size_type index, PSDQTO *value)
Definition IfcPsdQto.h:312
void setAt(size_type index, PSDQTO *value)
Definition IfcPsdQto.h:271
void removeAt(size_type index)
Definition IfcPsdQto.h:326
void clear()
GLuint index
Definition gles2_ext.h:265
GLuint const GLchar * name
Definition gles2_ext.h:265
GLsizei const GLfloat * value
Definition gles2_ext.h:302