CFx SDK Documentation  2023 SP0
DbDatabaseReactor.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 _ODDBDATABASEREACTOR_INCLUDED_
28 #define _ODDBDATABASEREACTOR_INCLUDED_
29 
30 #include "TD_PackPush.h"
31 
32 #include "RxObject.h"
33 #include "IdArrays.h"
34 
49 {
50 public:
52 
54 
64  virtual void objectAppended(
65  const OdDbDatabase* pDb,
66  const OdDbObject* pObject);
67 
68 
78  virtual void objectUnAppended(
79  const OdDbDatabase* pDb,
80  const OdDbObject* pObject);
81 
82 
92  virtual void objectReAppended(
93  const OdDbDatabase* pDb,
94  const OdDbObject* pObject);
95 
96 
109  virtual void objectOpenedForModify(
110  const OdDbDatabase* pDb,
111  const OdDbObject* pObject);
112 
113 
126  virtual void objectModified(
127  const OdDbDatabase* pDb,
128  const OdDbObject* pObject);
129 
130 
141  virtual void objectErased(
142  const OdDbDatabase* pDb,
143  const OdDbObject* pObject,
144  bool erased = true);
145 
159  const OdDbDatabase* pDb,
160  const OdString& name);
161 
162 /*DOM-IGNORE-BEGIN*/
164 #define RO_VAR_DEF(type, name, d1, d2, r1, r2)
166 #define RO_VAR_DEF_H(type, name, d1, d2, r1, r2)
168 #define VAR_DEF(type, name, d1, d2, r1, r2)\
169 \
176  SVARS_FUNC_MODIFIER void headerSysVar_##name##_WillChange(const OdDbDatabase* pDb);
177 
178 #include "SysVarDefs.h"
179 
180 #undef VAR_DEF
181 #undef RO_VAR_DEF
182 #undef RO_VAR_DEF_H
183 
185 #define VAR_DEF(type, name, dxf, d1, d2, r1, r2)\
186  \
193  virtual void headerSysVar_dim##name##_WillChange(const OdDbDatabase* pDb);
194 
195 #include "DimVarDefs.h"
196 #undef VAR_DEF
197 /*DOM-IGNORE-END*/
198 
211  virtual void headerSysVarChanged(
212  const OdDbDatabase* pDb,
213  const OdString& name);
214 
215 /*DOM-IGNORE-BEGIN*/
217 #define VAR_DEF(type, name, d1, d2, r1, r2)\
218  \
225  SVARS_FUNC_MODIFIER void headerSysVar_##name##_Changed(const OdDbDatabase* pDb);
226 
227 #include "SysVarDefs.h"
228 
229 #undef VAR_DEF
230 
232 #define VAR_DEF(type, name, dxf, d1, d2, r1, r2)\
233  \
240  virtual void headerSysVar_dim##name##_Changed(const OdDbDatabase* pDb);
241 
242 #include "DimVarDefs.h"
243 #undef VAR_DEF
244 /*DOM-IGNORE-END*/
245 
255  const OdDbDatabase* pDb,
256  const OdString& appname,
257  OdDbObjectIdArray& objectIds);
258 
266  virtual void goodbye(
267  const OdDbDatabase* pDb);
268 };
273 
274 #include "TD_PackPop.h"
275 
276 #endif // _ODDBDATABASEREACTOR_INCLUDED_
OdSmartPtr< OdDbDatabaseReactor > OdDbDatabaseReactorPtr
#define TOOLKIT_EXPORT
Definition: DbExport.h:40
virtual void objectErased(const OdDbDatabase *pDb, const OdDbObject *pObject, bool erased=true)
virtual void objectUnAppended(const OdDbDatabase *pDb, const OdDbObject *pObject)
virtual void objectModified(const OdDbDatabase *pDb, const OdDbObject *pObject)
virtual void objectAppended(const OdDbDatabase *pDb, const OdDbObject *pObject)
virtual void headerSysVarChanged(const OdDbDatabase *pDb, const OdString &name)
virtual void headerSysVarWillChange(const OdDbDatabase *pDb, const OdString &name)
ODRX_DECLARE_MEMBERS(OdDbDatabaseReactor)
virtual void goodbye(const OdDbDatabase *pDb)
virtual void proxyResurrectionCompleted(const OdDbDatabase *pDb, const OdString &appname, OdDbObjectIdArray &objectIds)
virtual void objectOpenedForModify(const OdDbDatabase *pDb, const OdDbObject *pObject)
virtual void objectReAppended(const OdDbDatabase *pDb, const OdDbObject *pObject)
GLuint const GLchar * name
Definition: gles2_ext.h:265