Open CASCADE Technology 6.6.0
Public Member Functions | Static Public Member Functions
Transfer_SimpleBinderOfTransient Class Reference

An adapted instantiation of SimpleBinder for Transient Result,
i.e. ResultType can be computed from the Result itself,
instead of being static

#include <Transfer_SimpleBinderOfTransient.hxx>

Inheritance diagram for Transfer_SimpleBinderOfTransient:
Inheritance graph
[legend]

Public Member Functions

 Transfer_SimpleBinderOfTransient ()
 Creates an empty SimpleBinderOfTransient
//! Returns True if a starting object is bound with SEVERAL
results : Here, returns allways False
See Binder itself

Handle_Standard_Type ResultType () const
 Returns the Effective (Dynamic) Type of the Result
(Standard_Transient if no Result is defined)

Standard_CString ResultTypeName () const
 Returns the Effective Name of (Dynamic) Type of the Result
(void) if no result is defined

void SetResult (const Handle< Standard_Transient > &res)
 Defines the Result

const Handle_Standard_TransientResult () const
 Returns the defined Result, if there is one

Static Public Member Functions

static Standard_Boolean GetTypedResult (const Handle< Transfer_Binder > &bnd, const Handle< Standard_Type > &atype, Handle< Standard_Transient > &res)
 Returns a transient result according to its type (IsKind)
i.e. the result itself if IsKind(atype), else searches in
NextResult, until first found, then returns True
If not found, returns False (res is NOT touched)

This syntactic form avoids to do DownCast : if a result is
found with the good type, it is loaded in <res> and can be
immediately used, well initialised


Constructor & Destructor Documentation

Transfer_SimpleBinderOfTransient::Transfer_SimpleBinderOfTransient ( )

Member Function Documentation

static Standard_Boolean Transfer_SimpleBinderOfTransient::GetTypedResult ( const Handle< Transfer_Binder > &  bnd,
const Handle< Standard_Type > &  atype,
Handle< Standard_Transient > &  res 
) [static]
const Handle_Standard_Transient& Transfer_SimpleBinderOfTransient::Result ( ) const
Handle_Standard_Type Transfer_SimpleBinderOfTransient::ResultType ( ) const [virtual]

Implements Transfer_Binder.

Standard_CString Transfer_SimpleBinderOfTransient::ResultTypeName ( ) const [virtual]

Implements Transfer_Binder.

void Transfer_SimpleBinderOfTransient::SetResult ( const Handle< Standard_Transient > &  res)

The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines