File indexing completed on 2025-01-18 10:03:20
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017 #ifndef _CDF_Store_HeaderFile
0018 #define _CDF_Store_HeaderFile
0019
0020 #include <Standard.hxx>
0021 #include <Standard_DefineAlloc.hxx>
0022 #include <Standard_Handle.hxx>
0023
0024 #include <TCollection_ExtendedString.hxx>
0025 #include <PCDM_StoreStatus.hxx>
0026 #include <CDF_StoreSetNameStatus.hxx>
0027 #include <TCollection_HExtendedString.hxx>
0028
0029 #include <Message_ProgressRange.hxx>
0030
0031 class CDF_StoreList;
0032 class CDM_Document;
0033
0034
0035
0036 class CDF_Store
0037 {
0038 public:
0039
0040 DEFINE_STANDARD_ALLOC
0041
0042
0043
0044 Standard_EXPORT CDF_Store(const Handle(CDM_Document)& aDocument);
0045
0046
0047 Standard_EXPORT Handle(TCollection_HExtendedString) Folder() const;
0048
0049
0050 Standard_EXPORT Handle(TCollection_HExtendedString) Name() const;
0051
0052
0053 Standard_EXPORT Standard_Boolean IsStored() const;
0054
0055 Standard_EXPORT Standard_Boolean IsModified() const;
0056
0057 Standard_EXPORT Standard_Boolean CurrentIsConsistent() const;
0058
0059 Standard_EXPORT Standard_Boolean IsConsistent() const;
0060
0061 Standard_EXPORT Standard_Boolean HasAPreviousVersion() const;
0062
0063 Standard_EXPORT Handle(TCollection_HExtendedString) PreviousVersion() const;
0064
0065
0066
0067 Standard_EXPORT Standard_Boolean IsMainDocument() const;
0068
0069
0070
0071
0072 Standard_EXPORT Standard_Boolean SetFolder (const TCollection_ExtendedString& aFolder);
0073
0074
0075 Standard_EXPORT CDF_StoreSetNameStatus SetName (const Standard_ExtString aName);
0076
0077 Standard_EXPORT void SetComment (const Standard_ExtString aComment);
0078
0079 Standard_EXPORT Handle(TCollection_HExtendedString) Comment() const;
0080
0081
0082
0083 Standard_EXPORT CDF_StoreSetNameStatus RecheckName();
0084
0085 Standard_EXPORT Standard_Boolean SetPreviousVersion (const Standard_ExtString aPreviousVersion);
0086
0087 Standard_EXPORT void Realize (const Message_ProgressRange& theRange = Message_ProgressRange());
0088
0089
0090 Standard_EXPORT Standard_ExtString Path() const;
0091
0092
0093
0094 Standard_EXPORT Handle(TCollection_HExtendedString) MetaDataPath() const;
0095
0096
0097 Standard_EXPORT Handle(TCollection_HExtendedString) Description() const;
0098
0099 Standard_EXPORT void SetCurrent (const Standard_ExtString aPresentation);
0100
0101
0102
0103
0104 Standard_EXPORT void SetMain();
0105
0106 Standard_EXPORT PCDM_StoreStatus StoreStatus() const;
0107
0108 Standard_EXPORT Standard_ExtString AssociatedStatusText() const;
0109
0110
0111 Standard_EXPORT CDF_StoreSetNameStatus SetName (const TCollection_ExtendedString& aName);
0112
0113
0114
0115
0116 Standard_EXPORT Standard_Boolean SetFolder (const Standard_ExtString aFolder);
0117
0118
0119
0120
0121 protected:
0122
0123
0124
0125
0126
0127 private:
0128
0129
0130 Standard_EXPORT CDF_Store();
0131
0132 Standard_EXPORT void FindDefault();
0133
0134 Standard_EXPORT void Init();
0135
0136
0137 Handle(CDF_StoreList) myList;
0138 Handle(CDM_Document) myMainDocument;
0139 Handle(CDM_Document) myCurrentDocument;
0140 Standard_Boolean myHasSubComponents;
0141 Standard_Boolean myIsMainDocument;
0142 TCollection_ExtendedString myPath;
0143 TCollection_ExtendedString myText;
0144 PCDM_StoreStatus myStatus;
0145
0146
0147 };
0148
0149
0150
0151
0152
0153
0154
0155 #endif