39 #ifndef ORO_RTT_CORBA_CONVERSION_HPP 40 #define ORO_RTT_CORBA_CONVERSION_HPP 44 #include "OrocosTypesC.h" 45 #include "TaskContextC.h" 103 return new CORBA::Any(*t);
106 static bool updateAny(
const StdType& t, CORBA::Any& any ) {
108 any <<= CORBA::Any(*t);
119 static bool update(
const CORBA::Any& any, CORBA::Any_var _value) {
127 return new CORBA::Any( t.in() );
130 static bool updateAny(
const StdType& t, CORBA::Any& any ) {
132 any <<= CORBA::Any( t.in() );
145 static CORBA::Any::from_boolean
toAny(
bool t ) {
147 return CORBA::Any::from_boolean(t);
149 static CORBA::Any::to_boolean
fromAny( CORBA::Boolean& t ) {
150 return CORBA::Any::to_boolean(t);
152 static StdType
get(
const CORBA::Boolean t) {
156 static bool toStdType(StdType& tp,
const CorbaType& cb) {
165 static bool update(
const CORBA::Any& any, StdType& _value) {
194 static CORBA::Any::from_char
toAny( StdType t ) {
195 return CORBA::Any::from_char(t);
198 static CORBA::Any::to_char
fromAny( CorbaType& t ) {
199 return CORBA::Any::to_char(t);
202 static StdType
get(
const CorbaType t) {
206 static bool toStdType(StdType& tp,
const CorbaType& cb) {
215 static bool update(
const CORBA::Any& any, StdType& _value) {
244 static CorbaType
toAny(
const std::string& orig) {
249 static StdType
get(
const CorbaType t) {
253 static bool toStdType(StdType& dest,
const CorbaType src) {
270 static bool update(
const CORBA::Any& any, StdType& _value) {
273 if ( any >>= result ) {
286 static bool updateAny( StdType
const& t, CORBA::Any& any ) {
301 static CorbaType
toAny(
const StdType& orig) {
306 static StdType
get(
const CorbaType t) {
310 static bool update(
const CORBA::Any& any, StdType& _value) {
313 if ( any >>= result ) {
314 _value =
toRTT(*result);
326 static bool updateAny( StdType
const& t, CORBA::Any& any ) {
338 static bool update(
const CORBA::Any& any, StdType& _value) {
339 RTT::corba::CTaskContext_ptr task;
340 if ( any >>= task ) {
355 static bool updateAny(
const StdType& t, CORBA::Any& any ) {
373 static bool toCorbaType(CorbaType& cb,
const StdType& orig) {
378 static CorbaType toAny(
const StdType& orig) {
382 static bool toStdType(StdType& dest,
const CorbaType orig) {
387 static bool update(
const CORBA::Any& any, StdType& ret) {
403 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
CORBA::LongLongSeq sequence
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)
CORBA::ULongLongSeq sequence
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)