File indexing completed on 2025-01-18 10:05:17
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017 #ifndef _Storage_RootData_HeaderFile
0018 #define _Storage_RootData_HeaderFile
0019
0020 #include <Standard.hxx>
0021 #include <Standard_Type.hxx>
0022
0023 #include <Storage_MapOfPers.hxx>
0024 #include <Storage_Error.hxx>
0025 #include <TCollection_AsciiString.hxx>
0026 #include <Standard_Transient.hxx>
0027 #include <Standard_Integer.hxx>
0028 #include <Storage_HSeqOfRoot.hxx>
0029 class Storage_BaseDriver;
0030 class Storage_Root;
0031 class Standard_Persistent;
0032
0033
0034 class Storage_RootData;
0035 DEFINE_STANDARD_HANDLE(Storage_RootData, Standard_Transient)
0036
0037
0038 class Storage_RootData : public Standard_Transient
0039 {
0040
0041 public:
0042
0043
0044 Standard_EXPORT Storage_RootData();
0045
0046 Standard_EXPORT Standard_Boolean Read (const Handle(Storage_BaseDriver)& theDriver);
0047
0048
0049 Standard_EXPORT Standard_Integer NumberOfRoots() const;
0050
0051
0052
0053 Standard_EXPORT void AddRoot (const Handle(Storage_Root)& aRoot);
0054
0055 Standard_EXPORT Handle(Storage_HSeqOfRoot) Roots() const;
0056
0057
0058 Standard_EXPORT Handle(Storage_Root) Find (const TCollection_AsciiString& aName) const;
0059
0060
0061 Standard_EXPORT Standard_Boolean IsRoot (const TCollection_AsciiString& aName) const;
0062
0063
0064 Standard_EXPORT void RemoveRoot (const TCollection_AsciiString& aName);
0065
0066 Standard_EXPORT Storage_Error ErrorStatus() const;
0067
0068 Standard_EXPORT TCollection_AsciiString ErrorStatusExtension() const;
0069
0070 Standard_EXPORT void ClearErrorStatus();
0071
0072 Standard_EXPORT void UpdateRoot (const TCollection_AsciiString& aName, const Handle(Standard_Persistent)& aPers);
0073
0074 friend class Storage_Schema;
0075
0076
0077 DEFINE_STANDARD_RTTIEXT(Storage_RootData,Standard_Transient)
0078
0079 protected:
0080
0081
0082
0083
0084 private:
0085
0086
0087
0088 Standard_EXPORT void SetErrorStatus (const Storage_Error anError);
0089
0090 Standard_EXPORT void SetErrorStatusExtension (const TCollection_AsciiString& anErrorExt);
0091
0092 Storage_MapOfPers myObjects;
0093 Storage_Error myErrorStatus;
0094 TCollection_AsciiString myErrorStatusExt;
0095
0096
0097 };
0098
0099
0100
0101
0102
0103
0104
0105 #endif