1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
|
// 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_SimpleBinderOfTransient_HeaderFile
#define _Transfer_SimpleBinderOfTransient_HeaderFile
#ifndef _Standard_HeaderFile
#include <Standard.hxx>
#endif
#ifndef _Standard_DefineHandle_HeaderFile
#include <Standard_DefineHandle.hxx>
#endif
#ifndef _Handle_Transfer_SimpleBinderOfTransient_HeaderFile
#include <Handle_Transfer_SimpleBinderOfTransient.hxx>
#endif
#ifndef _Handle_Standard_Transient_HeaderFile
#include <Handle_Standard_Transient.hxx>
#endif
#ifndef _Transfer_Binder_HeaderFile
#include <Transfer_Binder.hxx>
#endif
#ifndef _Handle_Standard_Type_HeaderFile
#include <Handle_Standard_Type.hxx>
#endif
#ifndef _Standard_CString_HeaderFile
#include <Standard_CString.hxx>
#endif
#ifndef _Standard_Boolean_HeaderFile
#include <Standard_Boolean.hxx>
#endif
#ifndef _Handle_Transfer_Binder_HeaderFile
#include <Handle_Transfer_Binder.hxx>
#endif
class Standard_Transient;
class Transfer_TransferFailure;
class Standard_Type;
class Transfer_Binder;
//! An adapted instantiation of SimpleBinder for Transient Result, <br>
//! i.e. ResultType can be computed from the Result itself, <br>
//! instead of being static <br>
class Transfer_SimpleBinderOfTransient : public Transfer_Binder {
public:
//! Creates an empty SimpleBinderOfTransient <br>//! Returns True if a starting object is bound with SEVERAL <br>
//! results : Here, returns allways False <br>
//! See Binder itself <br>
Standard_EXPORT Transfer_SimpleBinderOfTransient();
//! Returns the Effective (Dynamic) Type of the Result <br>
//! (Standard_Transient if no Result is defined) <br>
Standard_EXPORT Handle_Standard_Type ResultType() const;
//! Returns the Effective Name of (Dynamic) Type of the Result <br>
//! (void) if no result is defined <br>
Standard_EXPORT Standard_CString ResultTypeName() const;
//! Defines the Result <br>
Standard_EXPORT void SetResult(const Handle(Standard_Transient)& res) ;
//! Returns the defined Result, if there is one <br>
Standard_EXPORT const Handle_Standard_Transient& Result() const;
//! Returns a transient result according to its type (IsKind) <br>
//! i.e. the result itself if IsKind(atype), else searches in <br>
//! NextResult, until first found, then returns True <br>
//! If not found, returns False (res is NOT touched) <br>
//! <br>
//! This syntactic form avoids to do DownCast : if a result is <br>
//! found with the good type, it is loaded in <res> and can be <br>
//! immediately used, well initialised <br>
Standard_EXPORT static Standard_Boolean GetTypedResult(const Handle(Transfer_Binder)& bnd,const Handle(Standard_Type)& atype,Handle(Standard_Transient)& res) ;
DEFINE_STANDARD_RTTI(Transfer_SimpleBinderOfTransient)
protected:
private:
Handle_Standard_Transient theres;
};
// other Inline functions and methods (like "C++: function call" methods)
#endif
|