CFx SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
DbTableIterator.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#ifndef OD_DBTABLEITERATOR_H
26#define OD_DBTABLEITERATOR_H
27
28#include "RxObject.h"
29#include "DbTableStyle.h"
30#include "TD_PackPush.h"
31
36{
37public:
40 OdDbCell() { m_row = 0; m_column = 0; }
41 OdDbCell(OdInt32 row, OdInt32 col) { m_row = row; m_column = col; }
42};
43
44class OdDbTableIteratorImpl;
46class OdDbTable;
47
56{
57public:
59
61
63
65
67
69
71
73
80
84 void start(void);
85
89 void step(void);
90
95 bool done(void);
96
103 bool seek(const OdDbCell& cell);
104
109 OdDbCell getCell(void) const;
110
115 OdInt32 getRow (void) const;
116
121 OdInt32 getColumn (void) const;
122
123protected:
125
126 OdDbTableIterator(OdDbTableIteratorImpl* pImpl);
127
128 OdDbTableIteratorImpl *m_pImpl;
129};
130
132
133#include "TD_PackPop.h"
134
135#endif
#define DBENT_EXPORT
Definition: DbExport.h:67
OdSmartPtr< OdDbTableIterator > OdDbTableIteratorPtr
int OdInt32
OdInt32 m_row
OdDbCell(OdInt32 row, OdInt32 col)
OdInt32 m_column
OdDbTableIterator(const OdDbTable *pTable, const OdCellRange &range, OdDb::TableIteratorOption nOption)
OdDbTableIterator(const OdDbLinkedTableData *pTable)
OdDbTableIterator(const OdDbLinkedTableData *pTable, const OdCellRange &range, OdDb::TableIteratorOption nOption)
static OdSmartPtr< OdDbTableIterator > createObject(const OdDbTable *pTable, const OdCellRange &range, OdDb::TableIteratorOption nOption)
void start(void)
OdInt32 getRow(void) const
static OdSmartPtr< OdDbTableIterator > createObject(const OdCellRange &range)
OdDbTableIterator(const OdCellRange &range, OdDb::TableIteratorOption nOption)
ODRX_DECLARE_MEMBERS(OdDbTableIterator)
OdDbTableIterator(const OdCellRange &range)
OdDbCell getCell(void) const
static OdSmartPtr< OdDbTableIterator > createObject(const OdDbTable *pTable)
OdInt32 getColumn(void) const
OdDbTableIterator(const OdDbTable *pTable)
bool seek(const OdDbCell &cell)
OdDbTableIteratorImpl * m_pImpl
OdDbTableIterator(OdDbTableIteratorImpl *pImpl)
static OdSmartPtr< OdDbTableIterator > createObject(const OdDbLinkedTableData *pTable)
static OdSmartPtr< OdDbTableIterator > createObject(const OdDbLinkedTableData *pTable, const OdCellRange &range, OdDb::TableIteratorOption nOption)
static OdSmartPtr< OdDbTableIterator > createObject(const OdCellRange &range, OdDb::TableIteratorOption nOption)
GLenum GLint * range
Definition: gles2_ext.h:563
TableIteratorOption
Definition: DbTableStyle.h:335