CFx SDK Documentation  2022 SP0
DbSectionManager.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 #ifndef _DbSectionManager_h_Included_
26 #define _DbSectionManager_h_Included_
27 
28 #include "DbSection.h"
29 #include "TD_PackPush.h"
30 
31 
32 class OdDbSection;
35 
36 
37 //*************************************************************************
38 // OdDbSectionManager
39 //*************************************************************************
40 
46 {
47 public:
49 
50  OdDbObjectId getSection(const OdString& pszName ) const;
51  OdDbSectionPtr getSection(const OdString& pszName, OdDb::OpenMode mode) const;
54  int numSections() const;
56  OdResult getUniqueSectionName(const OdString& pszBaseName,
57  OdString& pszUniqueName) const;
58 
60  OdDbDwgFiler* pFiler);
61 
62  virtual void dwgOutFields(
63  OdDbDwgFiler* pFiler) const;
64 
66  OdDbDxfFiler* pFiler);
67 
68  virtual void dxfOutFields(
69  OdDbDxfFiler* pFiler) const;
70 
72  void* pClsid) const;
73 protected:
75 };
76 
78 
79 //*************************************************************************
80 // OdDbSectionManagerIterator
81 //*************************************************************************
82 
83 class OdDbSectionManagerIteratorImpl;
84 
90 {
91  OdDbSectionManagerIteratorImpl* m_pImpl;
92  friend class OdDbSectionManager;
93 public:
97 
98  void start();
99  void step();
100  bool done() const;
101 
104 };
105 
106 #include "TD_PackPop.h"
107 #endif
#define TOOLKIT_EXPORT
Definition: DbExport.h:40
OdSmartPtr< OdDbSectionManager > OdDbSectionManagerPtr
OdSmartPtr< OdDbSectionManagerIterator > OdDbSectionManagerIteratorPtr
OdResult
Definition: OdResult.h:29
OdDbObjectImpl * m_pImpl
Definition: DbObject.h:1722
ODDB_DECLARE_MEMBERS(OdDbSectionManager)
virtual OdResult dwgInFields(OdDbDwgFiler *pFiler)
OdDbSectionPtr getLiveSection(OdDb::OpenMode mode) const
virtual void dxfOutFields(OdDbDxfFiler *pFiler) const
OdDbSectionManagerIteratorPtr newIterator() const
OdDbObjectId getSection(const OdString &pszName) const
virtual void dwgOutFields(OdDbDwgFiler *pFiler) const
int numSections() const
OdDbSectionPtr getSection(const OdString &pszName, OdDb::OpenMode mode) const
OdDbObjectId getLiveSection() const
virtual OdResult subGetClassID(void *pClsid) const
virtual OdResult dxfInFields(OdDbDxfFiler *pFiler)
OdResult getUniqueSectionName(const OdString &pszBaseName, OdString &pszUniqueName) const
OdDbObjectId getSection() const
ODRX_DECLARE_MEMBERS(OdDbSectionManagerIterator)
OdDbSectionPtr getSection(OdDb::OpenMode openMode) const
OpenMode
Definition: DbObjectId.h:54