0030169: Application Framework - Document format version management improvement
[occt.git] / src / CDM / CDM_Document.hxx
index 1b2d3d8..895c703 100644 (file)
@@ -343,6 +343,12 @@ Standard_OStream& operator << (Standard_OStream& anOStream);
 
   Standard_EXPORT void SetReferenceCounter (const Standard_Integer aReferenceCounter);
 
+  //! Returns version of the format to be used to store the document
+  Standard_EXPORT Standard_Integer StorageFormatVersion() const;
+
+  //! Sets <theVersion> of the format to be used to store the document
+  Standard_EXPORT void ChangeStorageFormatVersion(const Standard_Integer theVersion);
+
 friend class CDM_Reference;
 friend class CDM_ReferenceIterator;
 friend class CDM_Application;
@@ -359,7 +365,6 @@ protected:
 
   Standard_Boolean myResourcesAreLoaded;
 
-
 private:
 
   
@@ -398,7 +403,7 @@ private:
   Standard_Boolean myFileExtensionWasFound;
   Standard_Boolean myDescriptionWasFound;
   Handle(CDM_Application) myApplication;
-
+  Standard_Integer myStorageFormatVersion;
 
 };