CFx SDK Documentation  2023 SP0
OdFileDepMgr.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 _ODFILEDEPMGR_INCLUDED_
26 #define _ODFILEDEPMGR_INCLUDED_
27 
28 #include "TD_PackPush.h"
29 
30 #include "OdString.h"
31 #include "RxDictionary.h"
32 #include "DbExport.h"
33 
40 {
41 protected:
43 
44 public:
46  virtual void copyFrom(
47  const OdRxObject* pSource);
48  OdString m_FullFileName; // Full name of file.
49  OdString m_FileName; // Base name of file.
50  OdString m_FoundPath; // Path at which file was found.
51  OdString m_FingerprintGuid; // Fingerprint GUID.
52  OdString m_VersionGuid; // Version GUID.
53  OdString m_Feature; // Name of the application or *feature* that created this entry.
54  bool m_bIsModified; // Database was modified since last save.
55  bool m_bAffectsGraphics; // Entry affects the screen view.
56  OdInt32 m_nIndex; // Unique File Dependency List *index*.
57  OdInt32 m_nTimeStamp; // Seconds since 1/1/1980.
58  OdInt32 m_nFileSize; // Current File size.
59  OdRefCounter m_nReferenceCount; // Current reference count for *database*.
60 };
61 
66 
77 {
78 public:
80 
82 
96  const OdString& feature,
97  const OdString& fullFileName,
98  const bool affectsGraphics = false,
99  const bool noIncrement = false) = 0;
100 
101 
114  const OdString& feature,
115  const OdString& fullFileName,
116  OdFileDependencyInfoPtr& fileInfo,
117  const bool useCachedInfo = false) = 0;
118 
131  OdUInt32 fdlIndex,
132  OdFileDependencyInfoPtr& fileInfo,
133  const bool useCachedInfo = false) = 0;
134 
146  const OdString& feature,
147  const OdString& fullFileName) = 0;
149  OdUInt32 index) = 0;
150 
163  const OdString& feature,
164  const OdString& fullFileName,
165  const bool forceRemove = false) = 0;
166 
178  OdUInt32 fdlIndex,
179  const bool forceRemove = false) = 0;
180 
184  virtual OdUInt32 countEntries() = 0;
185 
198  virtual void iteratorInitialize(
199  const OdString& feature = OdString::kEmpty,
200  const bool modifiedOnly = false,
201  const bool affectsGraphicsOnly = false,
202  const bool walkXRefTree = false) = 0;
203 
210  virtual OdUInt32 iteratorNext() = 0;
211 
212  // get feature list for saving
213 
217  virtual void getFeatures(
218  OdRxDictionaryPtr& features) = 0;
219 
224  virtual void clearXRefEntries() = 0;
225 };
226 
231 
232 #include "TD_PackPop.h"
233 
234 #endif
#define TOOLKIT_EXPORT
Definition: DbExport.h:40
OdSmartPtr< OdFileDependencyInfo > OdFileDependencyInfoPtr
Definition: OdFileDepMgr.h:65
OdSmartPtr< OdFileDependencyManager > OdFileDependencyManagerPtr
Definition: OdFileDepMgr.h:230
int OdRefCounter
Definition: OdMutex.h:436
unsigned int OdUInt32
int OdInt32
OdResult
Definition: OdResult.h:29
virtual void copyFrom(const OdRxObject *pSource)
OdString m_FingerprintGuid
Definition: OdFileDepMgr.h:51
ODRX_DECLARE_MEMBERS(OdFileDependencyInfo)
OdRefCounter m_nReferenceCount
Definition: OdFileDepMgr.h:59
virtual void iteratorInitialize(const OdString &feature=OdString::kEmpty, const bool modifiedOnly=false, const bool affectsGraphicsOnly=false, const bool walkXRefTree=false)=0
virtual OdResult getEntry(const OdString &feature, const OdString &fullFileName, OdFileDependencyInfoPtr &fileInfo, const bool useCachedInfo=false)=0
virtual OdUInt32 createEntry(const OdString &feature, const OdString &fullFileName, const bool affectsGraphics=false, const bool noIncrement=false)=0
virtual OdResult getEntry(OdUInt32 fdlIndex, OdFileDependencyInfoPtr &fileInfo, const bool useCachedInfo=false)=0
virtual OdResult eraseEntry(const OdString &feature, const OdString &fullFileName, const bool forceRemove=false)=0
virtual OdResult updateEntry(OdUInt32 index)=0
virtual OdResult eraseEntry(OdUInt32 fdlIndex, const bool forceRemove=false)=0
virtual OdUInt32 iteratorNext()=0
virtual void clearXRefEntries()=0
virtual OdUInt32 countEntries()=0
virtual void getFeatures(OdRxDictionaryPtr &features)=0
ODRX_DECLARE_MEMBERS(OdFileDependencyManager)
virtual OdResult updateEntry(const OdString &feature, const OdString &fullFileName)=0
FIRSTDLL_EXPORT_STATIC static const OdString kEmpty
Definition: OdString.h:98
GLuint index
Definition: gles2_ext.h:265