CFx SDK Documentation  2020SP3
daiEntityExtent.h
Go to the documentation of this file.
1 // Copyright (C) 2002-2019, 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-2019 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 #include "OdaCommon.h"
25 #include "RxObject.h"
26 #include "daiModule.h"
27 #include "daiObjectId.h"
28 #include "daiSessionInstance.h"
29 #include "daiEntity.h"
30 #include "daiAggr.h"
31 
32 #ifndef _DAI_ENTITY_EXTENT_H_
33 #define _DAI_ENTITY_EXTENT_H_
34 
38 namespace OdDAI {
39 
45  {
46  public:
47 
48  //DOM-IGNORE-BEGIN
50  //DOM-IGNORE-END
51 
55  const OdDAIObjectIds instances() const { return m_instances.getArray(); };
56 
62  void instances(OdDAIObjectIds& instances) { m_instances = instances; };
63 
67  OdDAIObjectIdAggr* instances() { return &m_instances; };
68 
72  const EntityPtr definition() const { return m_definition; };
73 
79  void definition(EntityPtr definition) { m_definition = definition; };
80 
84  const OdAnsiString name() const { return m_definition->name(); };
85 
86 //DOM-IGNORE-BEGIN
87  private:
88 
89  EntityPtr m_definition;
90  OdDAIObjectIdAggr m_instances;
91  friend class ModelContents;
92 //DOM-IGNORE-END
93 
94  };
96 
97 }
98 
99 #endif // _DAI_ENTITY_EXTENT_H_
OdDAI::OdEntityExtent
Definition: daiEntityExtent.h:45
OdDAI::OdEntityExtent::instances
void instances(OdDAIObjectIds &instances)
Definition: daiEntityExtent.h:62
OdDAI::OdEntityExtent::instances
const OdDAIObjectIds instances() const
Definition: daiEntityExtent.h:55
daiModule.h
OdArray< OdDAIObjectId >
OdDAI::Aggr< OdDAIObjectId >
daiAggr.h
OdDAI::OdEntityExtent::instances
OdDAIObjectIdAggr * instances()
Definition: daiEntityExtent.h:67
RxObject.h
OdDAI
Definition: daiAccessDefines.h:31
OdDAI::OdEntityExtent::name
const OdAnsiString name() const
Definition: daiEntityExtent.h:84
OdSmartPtr
Definition: SmartPtr.h:58
OdDAI::OdEntityExtentPtr
OdSmartPtr< OdEntityExtent > OdEntityExtentPtr
Definition: daiEntityExtent.h:95
daiEntity.h
OdaCommon.h
OdDAI::OdEntityExtent::definition
const EntityPtr definition() const
Definition: daiEntityExtent.h:72
OdDAI::OdEntityExtent::definition
void definition(EntityPtr definition)
Definition: daiEntityExtent.h:79
OdDAI::SessionInstance
Definition: daiSessionInstance.h:38
daiSessionInstance.h
DAI_EXPORT
#define DAI_EXPORT
Definition: daiBuildOptions.h:28
OdDAI::OdEntityExtent::ODRX_DECLARE_MEMBERS
ODRX_DECLARE_MEMBERS(OdEntityExtent)
daiObjectId.h