File indexing completed on 2026-09-19 09:29:19
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014 #ifndef _StdStorage_RootData_HeaderFile
0015 #define _StdStorage_RootData_HeaderFile
0016
0017 #include <Standard.hxx>
0018 #include <Standard_Type.hxx>
0019
0020 #include <Storage_Error.hxx>
0021 #include <TCollection_AsciiString.hxx>
0022 #include <Standard_Transient.hxx>
0023 #include <Standard_Integer.hxx>
0024 #include <StdStorage_Root.hxx>
0025 #include <NCollection_IndexedDataMap.hxx>
0026 #include <NCollection_Sequence.hxx>
0027 #include <NCollection_HSequence.hxx>
0028 class Storage_BaseDriver;
0029 class StdStorage_Root;
0030
0031
0032 class StdStorage_RootData : public Standard_Transient
0033 {
0034 friend class StdStorage_Data;
0035
0036 public:
0037 DEFINE_STANDARD_RTTIEXT(StdStorage_RootData, Standard_Transient)
0038
0039
0040
0041
0042
0043 Standard_EXPORT bool Read(const occ::handle<Storage_BaseDriver>& theDriver);
0044
0045
0046
0047
0048
0049 Standard_EXPORT bool Write(const occ::handle<Storage_BaseDriver>& theDriver);
0050
0051
0052 Standard_EXPORT int NumberOfRoots() const;
0053
0054
0055
0056 Standard_EXPORT void AddRoot(const occ::handle<StdStorage_Root>& aRoot);
0057
0058
0059 Standard_EXPORT occ::handle<NCollection_HSequence<occ::handle<StdStorage_Root>>> Roots() const;
0060
0061
0062 Standard_EXPORT occ::handle<StdStorage_Root> Find(const TCollection_AsciiString& aName) const;
0063
0064
0065 Standard_EXPORT bool IsRoot(const TCollection_AsciiString& aName) const;
0066
0067
0068 Standard_EXPORT void RemoveRoot(const TCollection_AsciiString& aName);
0069
0070
0071 Standard_EXPORT Storage_Error ErrorStatus() const;
0072
0073
0074 Standard_EXPORT TCollection_AsciiString ErrorStatusExtension() const;
0075
0076
0077 Standard_EXPORT void ClearErrorStatus();
0078
0079
0080 Standard_EXPORT void Clear();
0081
0082 private:
0083 Standard_EXPORT StdStorage_RootData();
0084
0085 Standard_EXPORT void SetErrorStatus(const Storage_Error anError);
0086
0087 Standard_EXPORT void SetErrorStatusExtension(const TCollection_AsciiString& anErrorExt);
0088
0089 NCollection_IndexedDataMap<TCollection_AsciiString, occ::handle<StdStorage_Root>> myObjects;
0090 Storage_Error myErrorStatus;
0091 TCollection_AsciiString myErrorStatusExt;
0092 };
0093
0094 #endif