CFx SDK Documentation  2020SP3
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
OdDbSectionManager::dxfOutFields
virtual void dxfOutFields(OdDbDxfFiler *pFiler) const
OdResult
OdResult
Definition: OdResult.h:29
OdString
Definition: OdString.h:95
OdDbSectionManager::newIterator
OdDbSectionManagerIteratorPtr newIterator() const
OdDbSectionManagerIterator::getSection
OdDbSectionPtr getSection(OdDb::OpenMode openMode) const
OdDbSectionManager::getLiveSection
OdDbObjectId getLiveSection() const
OdRxObject
Definition: RxObject.h:564
OdDbObjectId
Definition: DbObjectId.h:99
OdDbSectionManager::dwgOutFields
virtual void dwgOutFields(OdDbDwgFiler *pFiler) const
OdDbSectionManager::dxfInFields
virtual OdResult dxfInFields(OdDbDxfFiler *pFiler)
OdDbSectionManager::ODDB_DECLARE_MEMBERS
ODDB_DECLARE_MEMBERS(OdDbSectionManager)
TD_PackPop.h
OdDbSectionManagerIterator::OdDbSectionManagerIterator
OdDbSectionManagerIterator()
OdDbSectionManager::dwgInFields
virtual OdResult dwgInFields(OdDbDwgFiler *pFiler)
OdDbSectionManagerIterator::ODRX_DECLARE_MEMBERS
ODRX_DECLARE_MEMBERS(OdDbSectionManagerIterator)
OdDbSectionManager::getLiveSection
OdDbSectionPtr getLiveSection(OdDb::OpenMode mode) const
OdDbSectionManagerIterator::getSection
OdDbObjectId getSection() const
DbSection.h
OdSmartPtr
Definition: SmartPtr.h:58
OdDbSectionManagerPtr
OdSmartPtr< OdDbSectionManager > OdDbSectionManagerPtr
Definition: DbSectionManager.h:77
OdDbSectionManager::numSections
int numSections() const
OdDbDxfFiler
Definition: DbFiler.h:194
TD_PackPush.h
OdDbSectionManager
Definition: DbSectionManager.h:46
OdDbSection
Definition: DbSection.h:45
OdDbSectionManagerIterator::start
void start()
OdDb::OpenMode
OpenMode
Definition: DbObjectId.h:54
OdDbSectionManagerIterator
Definition: DbSectionManager.h:90
OdDbSectionManager::getSection
OdDbSectionPtr getSection(const OdString &pszName, OdDb::OpenMode mode) const
OdDbSectionManager::getSection
OdDbObjectId getSection(const OdString &pszName) const
OdDbSectionManager::subGetClassID
virtual OdResult subGetClassID(void *pClsid) const
TOOLKIT_EXPORT
#define TOOLKIT_EXPORT
Definition: DbExport.h:40
OdDbSectionManager::OdDbSectionManager
OdDbSectionManager()
OdDbSectionManagerIterator::step
void step()
OdDbSectionManager::getUniqueSectionName
OdResult getUniqueSectionName(const OdString &pszBaseName, OdString &pszUniqueName) const
OdDbSectionManagerIteratorPtr
OdSmartPtr< OdDbSectionManagerIterator > OdDbSectionManagerIteratorPtr
Definition: DbSectionManager.h:33
OdDbObject
Definition: DbObject.h:211
OdDbDwgFiler
Definition: DbFiler.h:1031
OdDbSectionManagerIterator::~OdDbSectionManagerIterator
~OdDbSectionManagerIterator()
OdDbSectionManagerIterator::done
bool done() const