CFx SDK Documentation  2020SP3
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 
OdResult
OdResult
Definition: OdResult.h:29
OdDbXrecordIterator::ODRX_DECLARE_MEMBERS
ODRX_DECLARE_MEMBERS(OdDbXrecordIterator)
OdString
Definition: OdString.h:95
OdDbDatabase
Definition: DbDatabase.h:421
Oda::kOpenExisting
@ kOpenExisting
Definition: RxSystemServices.h:76
OdDbXrecordIterator::getCurResbuf
OdResBufPtr getCurResbuf(OdDbDatabase *pDb=0) const
DbObject.h
OdResBuf
Definition: ResBuf.h:112
OdDbXrecordIterator::curRestype
int curRestype() const
OdDbXrecord::open
static OdDbXrecordPtr open(OdDbObject *pObject, const OdString &key, int creationFlag=kOpenExisting, OdDb::DuplicateRecordCloning mergeStyle=OdDb::kDrcIgnore)
OdDbXrecordIteratorPtr
OdSmartPtr< OdDbXrecordIterator > OdDbXrecordIteratorPtr
Definition: DbXrecord.h:92
OdRxObject
Definition: RxObject.h:564
OdDbXrecord::dwgInFields
virtual OdResult dwgInFields(OdDbDwgFiler *pFiler)
OdDbXrecordIterator::done
bool done() const
OdDbXrecord
Definition: DbXrecord.h:105
OdArray< OdString >
TD_PackPop.h
OdDbXrecord::open
static OdDbXrecordPtr open(OdDbObject *pObject, const OdArray< OdString > &keys, int creationFlag=kOpenExisting, OdDb::DuplicateRecordCloning mergeStyle=OdDb::kDrcIgnore)
OdDbXrecord::setFromRbChain
OdResult setFromRbChain(const OdResBuf *pRb, OdDbDatabase *pDb=0)
OdDbXrecord::rbChain
OdResBufPtr rbChain(OdDbDatabase *pDb=0, OdResult *pStatus=0) const
OdSmartPtr< OdResBuf >
OdDbXrecord::setXlateReferences
void setXlateReferences(bool isXlateReferences)
OdDbXrecord::subGetClassID
virtual OdResult subGetClassID(void *pClsid) const
OdDbXrecord::dwgOutFields
virtual void dwgOutFields(OdDbDwgFiler *pFiler) const
OdDbXrecord::newIterator
OdDbXrecordIteratorPtr newIterator(OdDbDatabase *pDb=0) const
OdDbDxfFiler
Definition: DbFiler.h:194
OdDbXrecord::appendRbChain
OdResult appendRbChain(const OdResBuf *pRb, OdDbDatabase *pDb=0)
OdDbXrecord::OdDbXrecord
OdDbXrecord()
OdDbXrecordIterator::start
void start()
OdDbXrecordIterator::next
bool next()
OdDbXrecordIterator::OdDbXrecordIterator
OdDbXrecordIterator(OdDbXrecordIteratorImpl *pIterImpl)
OdDbXrecord::dxfOutFields
virtual void dxfOutFields(OdDbDxfFiler *pFiler) const
DbFiler.h
OdDbXrecord::isXlateReferences
bool isXlateReferences() const
OdDbXrecord::mergeStyle
virtual OdDb::DuplicateRecordCloning mergeStyle() const
OdDbXrecord::setMergeStyle
virtual void setMergeStyle(OdDb::DuplicateRecordCloning mergeStyle)
TOOLKIT_EXPORT
#define TOOLKIT_EXPORT
Definition: DbExport.h:40
OdDb::kDrcIgnore
@ kDrcIgnore
Definition: DbObject.h:128
OdDbXrecord::dxfInFields
virtual OdResult dxfInFields(OdDbDxfFiler *pFiler)
OdDbXrecordIterator
Definition: DbXrecord.h:48
OdDb::DuplicateRecordCloning
DuplicateRecordCloning
Definition: DbObject.h:126
OdDbXrecord::ODDB_DECLARE_MEMBERS
ODDB_DECLARE_MEMBERS(OdDbXrecord)
OdDbXrecordIterator::m_pImpl
OdDbXrecordIteratorImpl * m_pImpl
Definition: DbXrecord.h:86
OdDbObject
Definition: DbObject.h:211
OdDbDwgFiler
Definition: DbFiler.h:1031