CFx SDK Documentation  2023 SP0
DbIdBuffer.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 OD_DBIDBUFFER_H
28 #define OD_DBIDBUFFER_H
29 
30 #include "TD_PackPush.h"
31 
32 #include "DbObject.h"
33 
41 {
42 public:
46  virtual void start() = 0;
47 
51  virtual bool done() const = 0;
52 
56  virtual void next() = 0;
57 
61  virtual OdDbObjectId id() const = 0;
62 
68  virtual bool seek(OdDbObjectId id) = 0;
69 
74  virtual void removeCurrentId() = 0;
75 };
76 
77 
82 
89 {
90 public:
92 
97 
105 
109  void addId(const OdDbObjectId &id);
110 
114  int numIds() const;
115 
119  void removeAll();
120 
122 
123  virtual void dwgOutFields(OdDbDwgFiler* pFiler) const;
124 
126 
127  virtual void dxfOutFields(OdDbDxfFiler* pFiler) const;
128 };
129 
130 
135 
136 #include "TD_PackPop.h"
137 
138 #endif // OD_DBIDBUFFER_H
139 
#define TOOLKIT_EXPORT
Definition: DbExport.h:40
OdSmartPtr< OdDbIdBuffer > OdDbIdBufferPtr
Definition: DbIdBuffer.h:134
OdSmartPtr< OdDbIdBufferIterator > OdDbIdBufferIteratorPtr
Definition: DbIdBuffer.h:81
OdResult
Definition: OdResult.h:29
ODDB_DECLARE_MEMBERS(OdDbIdBuffer)
void addId(const OdDbObjectId &id)
virtual OdResult dxfInFields(OdDbDxfFiler *pFiler)
virtual void dwgOutFields(OdDbDwgFiler *pFiler) const
void removeAll()
virtual void dxfOutFields(OdDbDxfFiler *pFiler) const
int numIds() const
virtual OdResult dwgInFields(OdDbDwgFiler *pFiler)
OdDbIdBufferIteratorPtr newIterator()
virtual OdDbObjectId id() const =0
virtual void start()=0
virtual void next()=0
virtual bool done() const =0
virtual bool seek(OdDbObjectId id)=0
virtual void removeCurrentId()=0