CFx SDK Documentation  2023 SP0
DbCompoundObjectId.h
Go to the documentation of this file.
1 // Copyright (C) 2002-2017, 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 Teigha(R) software pursuant to a license
16 // agreement with Open Design Alliance.
17 // Teigha(R) Copyright (C) 2002-2017 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 OdDbCompoundObjectId_INCLUDED
25 #define OdDbCompoundObjectId_INCLUDED
26 
27 #include "RxObject.h"
28 #include "DbObjectId.h"
29 #include "IdArrays.h"
30 
31 class OdDbDwgFiler;
32 class OdDbDxfFiler;
33 
34 class OdGeMatrix3d;
35 class OdDbIdMapping;
36 class OdDbCompoundObjectIdImpl;
37 
38 #include "TD_PackPush.h"
39 
45 {
46 public:
48 
50 
51  OdDbCompoundObjectId& operator =(const OdDbObjectId&);
53 
54  bool operator ==(const OdDbCompoundObjectId&) const;
55  bool operator !=(const OdDbCompoundObjectId& other) const;
56 
58 
60 
62 
64 
65  void setEmpty();
66 
67  OdResult set(const OdDbObjectId&, OdDbDatabase* pHostDatabase = NULL);
68 
69  OdResult set(const OdDbCompoundObjectId&, OdDbDatabase* pHostDatabase = NULL);
70 
71  OdResult set(const OdDbObjectId& id, const OdDbObjectIdArray& path, OdDbDatabase* pHostDatabase = NULL);
72 
73  OdResult setFullPath(const OdDbObjectIdArray& fullPath, OdDbDatabase* pHostDatabase = NULL);
74 
75  bool isEmpty() const;
76 
77  bool isValid(int validityCheckingLevel = 1) const;
78 
79  bool isExternal() const;
80 
81  bool isSimpleObjectId() const;
82 
84 
85  bool remap(const OdDbIdMapping& idMap);
86 
87  OdResult dwgOutFields(OdDbDwgFiler* pFiler, OdDbDatabase* pHostDatabase) const;
88 
89  OdResult dwgInFields(OdDbDwgFiler* pFiler, int ownerVersion);
90 
91  OdResult dxfOutFields(OdDbDxfFiler* pFiler, OdDbDatabase* pHostDatabase) const;
92 
93  OdResult dxfInFields(OdDbDxfFiler* pFiler, OdDbDatabase* pHostDatabase, int ownerVersion);
94 
95  static const OdDbCompoundObjectId& nullId();
96 
97 protected:
99  OdDbCompoundObjectId(OdDbCompoundObjectIdImpl*);
100 
101  OdDbCompoundObjectIdImpl* m_pImpl;
102 };
103 
105 
106 #include "TD_PackPop.h"
107 
108 #endif
OdSmartPtr< OdDbCompoundObjectId > OdDbCompoundObjectIdPtr
#define TOOLKIT_EXPORT
Definition: DbExport.h:40
#define NULL
Definition: GsProperties.h:177
OdResult
Definition: OdResult.h:29
bool isValid(int validityCheckingLevel=1) const
OdDbObjectId topId() const
OdResult getPath(OdDbObjectIdArray &path) const
OdResult dwgInFields(OdDbDwgFiler *pFiler, int ownerVersion)
OdResult set(const OdDbObjectId &, OdDbDatabase *pHostDatabase=NULL)
OdDbCompoundObjectId(OdDbCompoundObjectIdImpl *)
OdResult getTransform(OdGeMatrix3d &trans) const
bool isEmpty() const
static const OdDbCompoundObjectId & nullId()
OdResult setFullPath(const OdDbObjectIdArray &fullPath, OdDbDatabase *pHostDatabase=NULL)
OdResult dxfOutFields(OdDbDxfFiler *pFiler, OdDbDatabase *pHostDatabase) const
OdResult dwgOutFields(OdDbDwgFiler *pFiler, OdDbDatabase *pHostDatabase) const
OdResult getFullPath(OdDbObjectIdArray &fullPath) const
OdDbCompoundObjectIdImpl * m_pImpl
bool remap(const OdDbIdMapping &idMap)
OdResult set(const OdDbObjectId &id, const OdDbObjectIdArray &path, OdDbDatabase *pHostDatabase=NULL)
virtual ~OdDbCompoundObjectId()
OdResult dxfInFields(OdDbDxfFiler *pFiler, OdDbDatabase *pHostDatabase, int ownerVersion)
bool isSimpleObjectId() const
OdDbObjectId leafId() const
OdResult set(const OdDbCompoundObjectId &, OdDbDatabase *pHostDatabase=NULL)
bool isExternal() const
ODRX_DECLARE_MEMBERS(OdDbCompoundObjectId)
bool operator==(const BlockRefPath &rA, const BlockRefPath &rB)
DOM.
bool operator!=(const BlockRefPath &rA, const BlockRefPath &rB)
DOM.