CFx SDK Documentation 2026 SP0
Loading...
Searching...
No Matches
DbXrecord.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
25
26
27#ifndef ODDB_XRECORD_H
28#define ODDB_XRECORD_H
29
30#include "TD_PackPush.h"
31
32//#define ODDB_XRECORD_CLASS "OdDbXrecord"
33
34#include "DbObject.h"
35#include "DbFiler.h"
36#include "DwgDeclareMembers.h"
37
38//FELIX_CHANGE_BEGIN Build fix ODA 24.7 for GIS
39#include "RxIterator.h"
40//FELIX_CHANGE_END
41
42class OdDbXrecordIteratorImpl;
43
50class TOOLKIT_EXPORT OdDbXrecordIterator : public OdRxObject
51{
52public:
54
61 void start();
62
66 bool done() const;
67
74 bool next();
75
79 int curRestype() const;
80
86protected:
88 OdDbXrecordIteratorImpl* pIterImpl);
89 OdDbXrecordIteratorImpl* m_pImpl;
90};
91
96
97
106{
107public:
109
111
122 OdDbDatabase* pDb = 0,
123 OdResult* pStatus = 0) const;
124
135 OdDbDatabase* pDb = 0) const;
136
144
152
159
167 const OdResBuf* pRb,
168 OdDbDatabase* pDb = 0);
169
174 bool isXlateReferences() const;
175
183 bool isXlateReferences);
184
186 OdDbDwgFiler* pFiler);
187
188 virtual void dwgOutFields(
189 OdDbDwgFiler* pFiler) const;
190
192 OdDbDxfFiler* pFiler);
193 virtual void dxfOutFields(
194 OdDbDxfFiler* pFiler) const;
195
200
206 virtual void setMergeStyle(
208
210 void* pClsid) const;
211
212 enum
213 {
216 };
217
239 static OdDbXrecordPtr open(OdDbObject* pObject, const OdString &key,
240 int creationFlag = kOpenExisting,
242
264 static OdDbXrecordPtr open(OdDbObject* pObject, const OdArray<OdString> &keys,
265 int creationFlag = kOpenExisting,
267};
268
269#include "TD_PackPop.h"
270
271#endif //ODDB_XRECORD_H
272
OdSmartPtr< OdResBuf > OdResBufPtr
Definition DbDatabase.h:105
#define TOOLKIT_EXPORT
Definition DbExport.h:40
OdSmartPtr< OdDbXrecord > OdDbXrecordPtr
Definition DbObject.h:68
OdSmartPtr< OdDbXrecordIterator > OdDbXrecordIteratorPtr
Definition DbXrecord.h:95
OdResult
Definition OdResult.h:29
OdResBufPtr rbChain(OdDbDatabase *pDb=0, OdResult *pStatus=0) const
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
@ kCreateIfNotFound
Definition DbXrecord.h:215
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)
OdDbNextIteratorWrap< OdDbXrecordIterator > end() const
Definition DbXrecord.h:149
DWGMAP_DECLARE_MEMBERS(OdDbXrecord)
virtual OdResult dwgInFields(OdDbDwgFiler *pFiler)
OdDbXrecordIteratorPtr newIterator(OdDbDatabase *pDb=0) const
OdDbNextIteratorWrap< OdDbXrecordIterator > begin() const
Definition DbXrecord.h:141
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:89
bool done() const
DuplicateRecordCloning
Definition DbObject.h:128
@ kDrcIgnore
Definition DbObject.h:130