File indexing completed on 2025-01-18 10:05:29
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017 #ifndef _Transfer_TransientProcess_HeaderFile
0018 #define _Transfer_TransientProcess_HeaderFile
0019
0020 #include <Standard.hxx>
0021 #include <Standard_Type.hxx>
0022
0023 #include <TColStd_HSequenceOfTransient.hxx>
0024 #include <Transfer_ProcessForTransient.hxx>
0025 #include <Standard_Integer.hxx>
0026 #include <Standard_CString.hxx>
0027 #include <Standard_Transient.hxx>
0028 #include <TCollection_AsciiString.hxx>
0029 #include <NCollection_DataMap.hxx>
0030 class Interface_InterfaceModel;
0031 class Interface_HGraph;
0032 class Interface_Graph;
0033 class Interface_EntityIterator;
0034
0035 class Transfer_TransientProcess;
0036 DEFINE_STANDARD_HANDLE(Transfer_TransientProcess, Transfer_ProcessForTransient)
0037
0038
0039
0040
0041
0042
0043
0044 class Transfer_TransientProcess : public Transfer_ProcessForTransient
0045 {
0046
0047 public:
0048
0049
0050
0051 Standard_EXPORT Transfer_TransientProcess(const Standard_Integer nb = 10000);
0052
0053
0054
0055 Standard_EXPORT void SetModel (const Handle(Interface_InterfaceModel)& model);
0056
0057
0058 Standard_EXPORT Handle(Interface_InterfaceModel) Model() const;
0059
0060
0061 Standard_EXPORT void SetGraph (const Handle(Interface_HGraph)& HG);
0062
0063 Standard_EXPORT Standard_Boolean HasGraph() const;
0064
0065 Standard_EXPORT Handle(Interface_HGraph) HGraph() const;
0066
0067 Standard_EXPORT const Interface_Graph& Graph() const;
0068
0069
0070
0071 Standard_EXPORT void SetContext (const Standard_CString name, const Handle(Standard_Transient)& ctx);
0072
0073
0074
0075
0076 Standard_EXPORT Standard_Boolean GetContext (const Standard_CString name, const Handle(Standard_Type)& type, Handle(Standard_Transient)& ctx) const;
0077
0078
0079
0080 Standard_EXPORT NCollection_DataMap<TCollection_AsciiString, Handle(Standard_Transient)>& Context();
0081
0082
0083
0084 Standard_EXPORT virtual void PrintTrace (const Handle(Standard_Transient)& start, Standard_OStream& S) const Standard_OVERRIDE;
0085
0086
0087
0088 Standard_EXPORT virtual Standard_Integer CheckNum (const Handle(Standard_Transient)& ent) const Standard_OVERRIDE;
0089
0090
0091
0092
0093 Standard_EXPORT Interface_EntityIterator TypedSharings (const Handle(Standard_Transient)& start, const Handle(Standard_Type)& type) const;
0094
0095
0096
0097
0098
0099
0100 Standard_EXPORT Standard_Boolean IsDataLoaded (const Handle(Standard_Transient)& ent) const;
0101
0102
0103
0104
0105
0106 Standard_EXPORT Standard_Boolean IsDataFail (const Handle(Standard_Transient)& ent) const;
0107
0108
0109 Standard_EXPORT void PrintStats (const Standard_Integer mode, Standard_OStream& S) const;
0110
0111 Standard_EXPORT Handle(TColStd_HSequenceOfTransient) RootsForTransfer();
0112
0113
0114
0115
0116 DEFINE_STANDARD_RTTIEXT(Transfer_TransientProcess,Transfer_ProcessForTransient)
0117
0118 protected:
0119
0120
0121
0122
0123 private:
0124
0125
0126 Handle(Interface_InterfaceModel) themodel;
0127 Handle(Interface_HGraph) thegraph;
0128 NCollection_DataMap<TCollection_AsciiString, Handle(Standard_Transient)> thectx;
0129 Handle(TColStd_HSequenceOfTransient) thetrroots;
0130
0131
0132 };
0133
0134
0135
0136
0137
0138
0139
0140 #endif