CFx SDK Documentation  2023 SP0
DbXrecord.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 
25 
26 
27 #ifndef ODDB_XRECORD_H
28 #define ODDB_XRECORD_H
30 #include "TD_PackPush.h"
31 
32 //#define ODDB_XRECORD_CLASS "OdDbXrecord"
33 
34 #include "DbObject.h"
35 #include "DbFiler.h"
36 
37 class OdDbXrecordIteratorImpl;
38 
48 {
49 public:
51 
58  void start();
59 
63  bool done() const;
64 
71  bool next();
72 
76  int curRestype() const;
77 
83 protected:
85  OdDbXrecordIteratorImpl* pIterImpl);
86  OdDbXrecordIteratorImpl* m_pImpl;
87 };
88 
93 
94 
105 {
106 public:
108 
110 
121  OdDbDatabase* pDb = 0,
122  OdResult* pStatus = 0) const;
123 
134  OdDbDatabase* pDb = 0) const;
135 
142 
150  const OdResBuf* pRb,
151  OdDbDatabase* pDb = 0);
152 
157  bool isXlateReferences() const;
158 
166  bool isXlateReferences);
167 
169  OdDbDwgFiler* pFiler);
170 
171  virtual void dwgOutFields(
172  OdDbDwgFiler* pFiler) const;
173 
175  OdDbDxfFiler* pFiler);
176  virtual void dxfOutFields(
177  OdDbDxfFiler* pFiler) const;
178 
183 
189  virtual void setMergeStyle(
190  OdDb::DuplicateRecordCloning mergeStyle);
191 
193  void* pClsid) const;
194 
195  enum
196  {
198  kCreateIfNotFound = 1
199  };
200 
222  static OdDbXrecordPtr open(OdDbObject* pObject, const OdString &key,
223  int creationFlag = kOpenExisting,
225 
247  static OdDbXrecordPtr open(OdDbObject* pObject, const OdArray<OdString> &keys,
248  int creationFlag = kOpenExisting,
250 };
251 
252 #include "TD_PackPop.h"
253 
254 #endif //ODDB_XRECORD_H
255 
#define TOOLKIT_EXPORT
Definition: DbExport.h:40
OdSmartPtr< OdDbXrecordIterator > OdDbXrecordIteratorPtr
Definition: DbXrecord.h:92
OdResult
Definition: OdResult.h:29
OdResBufPtr rbChain(OdDbDatabase *pDb=0, OdResult *pStatus=0) const
ODDB_DECLARE_MEMBERS(OdDbXrecord)
virtual void dxfOutFields(OdDbDxfFiler *pFiler) const
OdResult setFromRbChain(const OdResBuf *pRb, OdDbDatabase *pDb=0)
static OdDbXrecordPtr open(OdDbObject *pObject, const OdString &key, int creationFlag=kOpenExisting, OdDb::DuplicateRecordCloning mergeStyle=OdDb::kDrcIgnore)
virtual OdDb::DuplicateRecordCloning mergeStyle() const
OdResult appendRbChain(const OdResBuf *pRb, OdDbDatabase *pDb=0)
bool isXlateReferences() const
void setXlateReferences(bool isXlateReferences)
static OdDbXrecordPtr open(OdDbObject *pObject, const OdArray< OdString > &keys, int creationFlag=kOpenExisting, OdDb::DuplicateRecordCloning mergeStyle=OdDb::kDrcIgnore)
virtual void setMergeStyle(OdDb::DuplicateRecordCloning mergeStyle)
virtual OdResult subGetClassID(void *pClsid) const
virtual OdResult dxfInFields(OdDbDxfFiler *pFiler)
virtual OdResult dwgInFields(OdDbDwgFiler *pFiler)
OdDbXrecordIteratorPtr newIterator(OdDbDatabase *pDb=0) const
virtual void dwgOutFields(OdDbDwgFiler *pFiler) const
OdDbXrecordIterator(OdDbXrecordIteratorImpl *pIterImpl)
ODRX_DECLARE_MEMBERS(OdDbXrecordIterator)
int curRestype() const
OdResBufPtr getCurResbuf(OdDbDatabase *pDb=0) const
OdDbXrecordIteratorImpl * m_pImpl
Definition: DbXrecord.h:86
bool done() const
DuplicateRecordCloning
Definition: DbObject.h:126
@ kDrcIgnore
Definition: DbObject.h:128
@ kOpenExisting