// This file is generated by WOK (CPPExt). // Please do not edit this file; modify original file instead. // The copyright and license terms as defined for the original file apply to // this header file considered to be the "object code" form of the original source. #ifndef _Transfer_ResultFromTransient_HeaderFile #define _Transfer_ResultFromTransient_HeaderFile #ifndef _Standard_HeaderFile #include #endif #ifndef _Standard_DefineHandle_HeaderFile #include #endif #ifndef _Handle_Transfer_ResultFromTransient_HeaderFile #include #endif #ifndef _Handle_Standard_Transient_HeaderFile #include #endif #ifndef _Handle_Transfer_Binder_HeaderFile #include #endif #ifndef _Handle_TColStd_HSequenceOfTransient_HeaderFile #include #endif #ifndef _MMgt_TShared_HeaderFile #include #endif #ifndef _Standard_Boolean_HeaderFile #include #endif #ifndef _Handle_Interface_Check_HeaderFile #include #endif #ifndef _Interface_CheckStatus_HeaderFile #include #endif #ifndef _Standard_Integer_HeaderFile #include #endif #ifndef _Handle_Transfer_TransientProcess_HeaderFile #include #endif class Standard_Transient; class Transfer_Binder; class TColStd_HSequenceOfTransient; class Interface_Check; class TColStd_IndexedMapOfTransient; class Transfer_TransientProcess; //! This class, in conjunction with ResultFromModel, allows to
//! record the result of a transfer initially stored in a
//! TransientProcess.
//!
//! A ResultFromTransient records a couple (Transient,Binder for
//! the result and checks) plus a list of "sub-results", which
//! have been recorded in the TrabsientProcess, under scope
//! attached to the starting transient.
class Transfer_ResultFromTransient : public MMgt_TShared { public: //! Creates a ResultFromTransient, empty
Standard_EXPORT Transfer_ResultFromTransient(); //! Sets starting entity
Standard_EXPORT void SetStart(const Handle(Standard_Transient)& start) ; //! Sets Binder (for result plus individual check)
Standard_EXPORT void SetBinder(const Handle(Transfer_Binder)& binder) ; //! Returns the starting entity
Standard_EXPORT Handle_Standard_Transient Start() const; //! Returns the binder
Standard_EXPORT Handle_Transfer_Binder Binder() const; //! Returns True if a result is recorded
Standard_EXPORT Standard_Boolean HasResult() const; //! Returns the check (or an empty one if no binder)
Standard_EXPORT const Handle_Interface_Check Check() const; //! Returns the check status
Standard_EXPORT Interface_CheckStatus CheckStatus() const; //! Clears the list of (immediate) sub-results
Standard_EXPORT void ClearSubs() ; //! Adds a sub-result
Standard_EXPORT void AddSubResult(const Handle(Transfer_ResultFromTransient)& sub) ; //! Returns the count of recorded sub-results
Standard_EXPORT Standard_Integer NbSubResults() const; //! Returns a sub-result, given its rank
Standard_EXPORT Handle_Transfer_ResultFromTransient SubResult(const Standard_Integer num) const; //! Returns the ResultFromTransient attached to a given starting
//! entity (the key). Returns a null handle if not found
Standard_EXPORT Handle_Transfer_ResultFromTransient ResultFromKey(const Handle(Standard_Transient)& key) const; //! This method is used by ResultFromModel to collate the list of
//! ResultFromTransient, avoiding duplications with a map
//! Remark : is already in the map and has not to be bound
Standard_EXPORT void FillMap(TColStd_IndexedMapOfTransient& map) const; //! Fills from a TransientProcess, with the starting entity which
//! must have been set before. It works with scopes, calls Fill
//! on each of its sub-results
Standard_EXPORT void Fill(const Handle(Transfer_TransientProcess)& TP) ; //! Clears some data attached to binders used by TransientProcess,
//! which become useless once the transfer has been done :
//! the list of sub-scoped binders, which is now recorded as
//! sub-results
Standard_EXPORT void Strip() ; //! Fills back a TransientProcess with definition of a
//! ResultFromTransient, respectfully to its structuration in
//! scopes
Standard_EXPORT void FillBack(const Handle(Transfer_TransientProcess)& TP) const; DEFINE_STANDARD_RTTI(Transfer_ResultFromTransient) protected: private: Handle_Standard_Transient thestart; Handle_Transfer_Binder thebinder; Handle_TColStd_HSequenceOfTransient thesubs; }; // other Inline functions and methods (like "C++: function call" methods) #endif