DbTableIterator.h 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. //////////////////////////////////////////////////////////////////////////////
  2. //
  3. // Copyright 2015 Autodesk, Inc. All rights reserved.
  4. //
  5. // Use of this software is subject to the terms of the Autodesk license
  6. // agreement provided at the time of installation or download, or which
  7. // otherwise accompanies this software in either electronic or hard copy form.
  8. //
  9. //////////////////////////////////////////////////////////////////////////////
  10. //
  11. // Name: DbTableIterator.h
  12. //
  13. // Description: Contains AcDbTableIterator class
  14. //////////////////////////////////////////////////////////////////////////////
  15. #pragma once
  16. struct AcCell;
  17. struct AcCellRange;
  18. class AcDbTable;
  19. class AcDbLinkedTableData;
  20. //*************************************************************************
  21. // AcDbTableIterator
  22. //*************************************************************************
  23. class AcDbTableIterator
  24. {
  25. public:
  26. AcDbTableIterator(const AcDbTable* pTable);
  27. AcDbTableIterator(const AcDbTable* pTable, const AcCellRange* pRange,
  28. AcDb::TableIteratorOption nOption);
  29. AcDbTableIterator(const AcDbLinkedTableData* pTable);
  30. AcDbTableIterator(const AcDbLinkedTableData* pTable, const AcCellRange* pRange,
  31. AcDb::TableIteratorOption nOption);
  32. AcDbTableIterator(const AcCellRange& range);
  33. AcDbTableIterator(const AcCellRange& range, AcDb::TableIteratorOption nOption);
  34. ~AcDbTableIterator();
  35. void start (void);
  36. void step (void);
  37. bool done (void);
  38. bool seek (const AcCell& cell);
  39. const AcCell& getCell (void) const;
  40. int getRow (void) const;
  41. int getColumn (void) const;
  42. protected:
  43. AcDbTableIterator(void);
  44. protected:
  45. void * mpImpObj;
  46. };