CFx SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
DbXrecord.h
Go to the documentation of this file.
1
2// Copyright (C) 2002-2022, 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-2022 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#include "DwgDeclareMembers.h"
37
38class OdDbXrecordIteratorImpl;
39
47{
48public:
50
57 void start();
58
62 bool done() const;
63
70 bool next();
71
75 int curRestype() const;
76
82protected:
84 OdDbXrecordIteratorImpl* pIterImpl);
85 OdDbXrecordIteratorImpl* m_pImpl;
86};
87
92
93
102{
103public:
105
107
118 OdDbDatabase* pDb = 0,
119 OdResult* pStatus = 0) const;
120
131 OdDbDatabase* pDb = 0) const;
132
139
147 const OdResBuf* pRb,
148 OdDbDatabase* pDb = 0);
149
154 bool isXlateReferences() const;
155
163 bool isXlateReferences);
164
166 OdDbDwgFiler* pFiler);
167
168 virtual void dwgOutFields(
169 OdDbDwgFiler* pFiler) const;
170
172 OdDbDxfFiler* pFiler);
173 virtual void dxfOutFields(
174 OdDbDxfFiler* pFiler) const;
175
180
186 virtual void setMergeStyle(
188
190 void* pClsid) const;
191
192 enum
193 {
194 kOpenExisting = 0,
195 kCreateIfNotFound = 1
196 };
197
219 static OdDbXrecordPtr open(OdDbObject* pObject, const OdString &key,
220 int creationFlag = kOpenExisting,
222
244 static OdDbXrecordPtr open(OdDbObject* pObject, const OdArray<OdString> &keys,
245 int creationFlag = kOpenExisting,
247};
248
249#include "TD_PackPop.h"
250
251#endif //ODDB_XRECORD_H
252
#define TOOLKIT_EXPORT
Definition: DbExport.h:40
OdSmartPtr< OdDbXrecordIterator > OdDbXrecordIteratorPtr
Definition: DbXrecord.h:91
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
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)
DWGMAP_DECLARE_MEMBERS(OdDbXrecord)
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:85
bool done() const
DuplicateRecordCloning
Definition: DbObject.h:128
@ kDrcIgnore
Definition: DbObject.h:130