CFx SDK Documentation  2020SP3
SmDatabase.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 _SmDatabase_h_Included
28 #define _SmDatabase_h_Included
29 
30 #include "Sm/SmComponent.h"
31 #include "Sm/SmCustomProperty.h"
32 #include "Sm/SmEvents.h"
33 #include "Sm/SmSheetSet.h"
34 #include "Sm/SmEnum.h"
35 #include "Sm/SmPersist.h"
36 #include "Sm/SmObjectId.h"
37 
42 namespace dst
43 {
46 
52  {
54  virtual void loadFromFile( const OdString& filename ) = 0;
55  virtual void loadFromStream(OdStreamBuf* file) = 0;
56  virtual void save(OdStreamBuf* file = 0) = 0;
57  virtual OdString fileName() const = 0;
58  virtual void setFileName ( const OdString& newVal ) = 0;
59  virtual OdString templateDstFileName() const = 0;
60  virtual OdSmSheetSet* sheetSet() = 0;
61  virtual const OdSmSheetSet* sheetSet() const = 0;
62  virtual OdSmEnumPersistPtr enumerator() const = 0;
63  virtual long subscribe( OdSmEvents * eventHandler ) = 0;
64  virtual void unSubscribe( long cookie ) = 0;
65  virtual void notifyRegisteredEventHandlers( OdSmEvent event, OdSmPersist * comp ) const = 0;
66  virtual OdSmPersist* findObject( const OdString& hand ) const = 0;
67  virtual void findAcDbObjectReferences(const OdString& filename, const OdString& dbHandle, std::vector<OdSmPersist*>& ppObjects ) = 0;
68  virtual void updateInMemoryDwgHints() = 0;
69  virtual bool isTemporary() const = 0;
70  virtual void setIsTemporary() = 0;
71  virtual OdSmObjectIdPtr registerNewObject(const OdString& hand, OdSmPersist* pObject ) = 0;
72  virtual OdString version() const = 0;
73  virtual OdInt32 getRevision() const = 0;
74  virtual OdString getFingerPrint() const = 0;
75  };
76 
78 }
79 
80 
81 #endif
dst::OdSmDatabase::version
virtual OdString version() const =0
OdString
Definition: OdString.h:95
dst::OdSmDatabase::loadFromFile
virtual void loadFromFile(const OdString &filename)=0
dst::OdSmEvent
OdSmEvent
Definition: SmEvents.h:39
dst::OdSmDatabase::sheetSet
virtual const OdSmSheetSet * sheetSet() const =0
dst::OdSmDatabase
Definition: SmDatabase.h:52
dst::OdSmSheetSet
Definition: SmSheetSet.h:50
dst::OdSmDatabase::enumerator
virtual OdSmEnumPersistPtr enumerator() const =0
dst::OdSmEnumPersistPtr
OdSmartPtr< OdSmEnumPersist > OdSmEnumPersistPtr
Definition: SmDatabase.h:45
SmComponent.h
dst::OdSmDatabase::fileName
virtual OdString fileName() const =0
dst::OdSmDatabase::notifyRegisteredEventHandlers
virtual void notifyRegisteredEventHandlers(OdSmEvent event, OdSmPersist *comp) const =0
SmEvents.h
dst::OdSmDatabase::setFileName
virtual void setFileName(const OdString &newVal)=0
dst::OdSmEvents
Definition: SmEvents.h:75
SmObjectId.h
OdSmartPtr
Definition: SmartPtr.h:58
dst::OdSmDatabase::subscribe
virtual long subscribe(OdSmEvents *eventHandler)=0
OdInt32
int OdInt32
Definition: OdPlatformSettings.h:782
dst::OdSmDatabase::ODRX_DECLARE_MEMBERS
ODRX_DECLARE_MEMBERS(OdSmDatabase)
SmEnum.h
dst::OdSmDatabase::updateInMemoryDwgHints
virtual void updateInMemoryDwgHints()=0
dst::OdSmDatabase::loadFromStream
virtual void loadFromStream(OdStreamBuf *file)=0
dst::OdSmComponent
Definition: SmComponent.h:47
dst::OdSmDatabase::save
virtual void save(OdStreamBuf *file=0)=0
dst::OdSmDatabase::getFingerPrint
virtual OdString getFingerPrint() const =0
dst::OdSmDatabase::sheetSet
virtual OdSmSheetSet * sheetSet()=0
dst::OdSmEnum
Definition: SmEnum.h:37
dst::OdSmPersist
Definition: SmPersist.h:52
dst
Definition: SmCalloutBlocks.h:39
SMDLL_EXPORT
#define SMDLL_EXPORT
Definition: SmExport.h:35
dst::OdSmDatabase::setIsTemporary
virtual void setIsTemporary()=0
OdStreamBuf
Definition: OdStreamBuf.h:67
dst::OdSmDatabase::registerNewObject
virtual OdSmObjectIdPtr registerNewObject(const OdString &hand, OdSmPersist *pObject)=0
dst::OdSmDatabase::getRevision
virtual OdInt32 getRevision() const =0
SmCustomProperty.h
dst::OdSmDatabase::findAcDbObjectReferences
virtual void findAcDbObjectReferences(const OdString &filename, const OdString &dbHandle, std::vector< OdSmPersist * > &ppObjects)=0
dst::OdSmDatabase::isTemporary
virtual bool isTemporary() const =0
dst::OdSmEnumPersist
OdSmEnum< OdSmPersist > OdSmEnumPersist
Definition: SmDatabase.h:44
dst::OdSmDatabasePtr
OdSmartPtr< OdSmDatabase > OdSmDatabasePtr
Definition: SmDatabase.h:77
SmSheetSet.h
dst::OdSmDatabase::unSubscribe
virtual void unSubscribe(long cookie)=0
SmPersist.h
dst::OdSmDatabase::findObject
virtual OdSmPersist * findObject(const OdString &hand) const =0
dst::OdSmDatabase::templateDstFileName
virtual OdString templateDstFileName() const =0