39 #ifndef ORO_RTT_CORBA_CONVERSION_HPP 40 #define ORO_RTT_CORBA_CONVERSION_HPP 44 #include "OrocosTypesC.h" 45 #include "TaskContextC.h" 85 static bool update(
const CORBA::Any& any, CORBA::Any_ptr _value) {
91 static CORBA::Any_ptr
createAny( CORBA::Any_ptr t ) {
93 return new CORBA::Any(*t);
96 static bool updateAny(
const StdType& t, CORBA::Any& any ) {
98 any <<= CORBA::Any(*t);
109 static bool update(
const CORBA::Any& any, CORBA::Any_var _value) {
117 return new CORBA::Any( t.in() );
120 static bool updateAny(
const StdType& t, CORBA::Any& any ) {
122 any <<= CORBA::Any( t.in() );
135 static CORBA::Any::from_boolean
toAny(
bool t ) {
137 return CORBA::Any::from_boolean(t);
139 static CORBA::Any::to_boolean
fromAny( CORBA::Boolean& t ) {
140 return CORBA::Any::to_boolean(t);
142 static StdType
get(
const CORBA::Boolean t) {
146 static bool toStdType(StdType& tp,
const CorbaType& cb) {
155 static bool update(
const CORBA::Any& any, StdType& _value) {
165 CORBA::Any_ptr ret =
new CORBA::Any();
184 static CORBA::Any::from_char
toAny( StdType t ) {
185 return CORBA::Any::from_char(t);
188 static CORBA::Any::to_char
fromAny( CorbaType& t ) {
189 return CORBA::Any::to_char(t);
192 static StdType
get(
const CorbaType t) {
196 static bool toStdType(StdType& tp,
const CorbaType& cb) {
205 static bool update(
const CORBA::Any& any, StdType& _value) {
215 CORBA::Any_ptr ret =
new CORBA::Any();
234 static CorbaType
toAny(
const std::string& orig) {
239 static StdType
get(
const CorbaType t) {
243 static bool toStdType(StdType& dest,
const CorbaType src) {
260 static bool update(
const CORBA::Any& any, StdType& _value) {
263 if ( any >>= result ) {
270 static CORBA::Any_ptr
createAny(
const std::string& t ) {
271 CORBA::Any_ptr ret =
new CORBA::Any();
276 static bool updateAny( StdType
const& t, CORBA::Any& any ) {
291 static CorbaType
toAny(
const StdType& orig) {
296 static StdType
get(
const CorbaType t) {
300 static bool update(
const CORBA::Any& any, StdType& _value) {
303 if ( any >>= result ) {
304 _value =
toRTT(*result);
311 CORBA::Any_ptr ret =
new CORBA::Any();
316 static bool updateAny( StdType
const& t, CORBA::Any& any ) {
328 static bool update(
const CORBA::Any& any, StdType& _value) {
329 RTT::corba::CTaskContext_ptr task;
330 if ( any >>= task ) {
339 CORBA::Any_ptr ret =
new CORBA::Any();
345 static bool updateAny(
const StdType& t, CORBA::Any& any ) {
363 static bool toCorbaType(CorbaType& cb,
const StdType& orig) {
368 static CorbaType toAny(
const StdType& orig) {
372 static bool toStdType(StdType& dest,
const CorbaType orig) {
377 static bool update(
const CORBA::Any& any, StdType& ret) {
387 static CORBA::Any_ptr
createAny(
const StdType& t ) {
388 CORBA::Any_ptr ret =
new CORBA::Any();
393 static bool updateAny( StdType
const& t, CORBA::Any& any ) {
CORBA::Any CorbaType
corba type
CORBA::BooleanSeq sequence
static bool updateAny(StdType tp, CORBA::Any &any)
Updates an CORBA::Any object from of a C++/IDL type.
static CORBA::Any::to_char fromAny(CorbaType &t)
This class converts a given application-specific type to a CORBA::Any object and vice versa...
static bool toStdType(StdType &tp, const CorbaType &cb)
static CORBA::Any::from_boolean toAny(bool t)
static bool toStdType(StdType &tp, const CorbaType &cb)
static bool updateAny(char t, CORBA::Any &any)
static bool update(const CORBA::Any &any, CORBA::Any_var _value)
static bool update(const CORBA::Any &any, StdType tp)
Updates tp with the contents of any.
static bool update(const CORBA::Any &any, StdType &_value)
static CORBA::Any_ptr createAny(const StdType &t)
static bool update(const CORBA::Any &any, StdType &_value)
static bool toCorbaType(CorbaType &cb, const StdType &tp)
static bool toCorbaType(CorbaType &cb, const StdType &tp)
static CORBA::Any_ptr createAny(CORBA::Any_var t)
static CTaskContext_ptr CreateServer(TaskContext *tc, bool use_naming=true, bool require_name_service=false)
Factory method: create a CORBA server for an existing TaskContext.
CORBA::StringSeq sequence
A connection policy object describes how a given connection should behave.
static bool updateAny(const StdType &t, CORBA::Any &any)
static bool toCorbaType(CorbaType &cb, const StdType &tp)
Updates cb with the contents of tp.
RTT::corba::CTaskContext_ptr CorbaType
RTT::ConnPolicy toRTT(RTT::corba::CConnPolicy const &corba_policy)
Converts a Corba CConnPolicy object to a RTT ConPolicy object.
static CORBA::Any_ptr createAny(CORBA::Any_ptr t)
static bool updateAny(const StdType &t, CORBA::Any &any)
static bool toStdType(StdType &dest, const CorbaType src)
Used for the conversion of types that are binary compatible between CORBA type and std C++ type...
RTT::corba::CConnPolicy CorbaType
static bool updateAny(StdType const &t, CORBA::Any &any)
static CORBA::Any::from_char toAny(StdType t)
static bool update(const CORBA::Any &any, StdType &_value)
static CorbaType toAny(const std::string &orig)
static bool toStdType(StdType &tp, const CorbaType &cb)
Updates tp with the contents of cb.
static CORBA::Any_ptr createAny(const std::string &t)
static bool update(const CORBA::Any &any, CORBA::Any_ptr _value)
RTT::corba::CConnPolicy toCORBA(RTT::ConnPolicy const &policy)
Converts a RTT ConnPolicy object to a Corba CConPolicy object.
static CORBA::Any_ptr createAny(const StdType &t)
RTT::TaskContext * StdType
static CORBA::Any_ptr createAny(char t)
static CorbaType toAny(const StdType &orig)
The TaskContext is the C++ representation of an Orocos component.
static bool toCorbaType(T dest, const StdType &src)
Use for the conversion from a stl container to a sequence<string>
static bool update(const CORBA::Any &any, StdType &_value)
static CORBA::Any_ptr createAny(StdType tp)
Creates an CORBA::Any object out of a C++/IDL type.
static bool updateAny(const StdType &t, CORBA::Any &any)
static bool update(const CORBA::Any &any, StdType &_value)
Contains TaskContext, Activity, OperationCaller, Operation, Property, InputPort, OutputPort, Attribute.
static bool updateAny(bool t, CORBA::Any &any)
static bool updateAny(StdType const &t, CORBA::Any &any)
CORBA::DoubleSeq sequence
static TaskContextProxy * Create(std::string name, bool is_ior=false)
Factory method: create a CORBA Proxy for an existing TaskContextServer.
static CORBA::Any::to_boolean fromAny(CORBA::Boolean &t)
static CORBA::Any_ptr createAny(bool t)