CFx SDK Documentation  2022 SP0
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
int OdInt32
#define SMDLL_EXPORT
Definition: SmExport.h:35
OdSmartPtr< OdSmDatabase > OdSmDatabasePtr
Definition: SmDatabase.h:77
OdSmEvent
Definition: SmEvents.h:39
OdSmEnum< OdSmPersist > OdSmEnumPersist
Definition: SmDatabase.h:44
OdSmartPtr< OdSmEnumPersist > OdSmEnumPersistPtr
Definition: SmDatabase.h:45
virtual const OdSmSheetSet * sheetSet() const =0
virtual void save(OdStreamBuf *file=0)=0
virtual void unSubscribe(long cookie)=0
virtual OdSmPersist * findObject(const OdString &hand) const =0
virtual OdString getFingerPrint() const =0
virtual OdSmSheetSet * sheetSet()=0
virtual void setFileName(const OdString &newVal)=0
ODRX_DECLARE_MEMBERS(OdSmDatabase)
virtual void findAcDbObjectReferences(const OdString &filename, const OdString &dbHandle, std::vector< OdSmPersist * > &ppObjects)=0
virtual void setIsTemporary()=0
virtual bool isTemporary() const =0
virtual OdString fileName() const =0
virtual OdString templateDstFileName() const =0
virtual void loadFromStream(OdStreamBuf *file)=0
virtual OdSmEnumPersistPtr enumerator() const =0
virtual void notifyRegisteredEventHandlers(OdSmEvent event, OdSmPersist *comp) const =0
virtual void updateInMemoryDwgHints()=0
virtual OdSmObjectIdPtr registerNewObject(const OdString &hand, OdSmPersist *pObject)=0
virtual OdString version() const =0
virtual long subscribe(OdSmEvents *eventHandler)=0
virtual OdInt32 getRevision() const =0
virtual void loadFromFile(const OdString &filename)=0