20 #ifndef RTC_CORBACONSUMER_H 21 #define RTC_CORBACONSUMER_H 29 #pragma warning( disable : 4267 ) 30 #pragma warning( disable : 4290 ) 31 #pragma warning( disable : 4311 ) 32 #pragma warning( disable : 4312 ) 34 #include <omniORB4/CORBA.h> 36 #pragma warning( default : 4267 ) 37 #pragma warning( default : 4290 ) 38 #pragma warning( default : 4311 ) 39 #pragma warning( default : 4312 ) 46 #include <orbitcpp/orb-cpp/orbitcpp.h> 52 #include <tao/corba.h> 173 CORBA::Object_var tmpref = x.
m_objref;
223 if (CORBA::is_nil(obj))
227 m_objref = CORBA::Object::_duplicate(obj);
335 template <
class ObjectType,
336 typename ObjectTypePtr =
typename ObjectType::_ptr_type,
337 typename ObjectTypeVar =
typename ObjectType::_var_type>
371 : m_var(ObjectType::_duplicate(x.m_var))
404 ObjectTypeVar tmpref = x.
m_var;
405 x.
m_var = this->m_var;
406 this->m_var = tmpref;
462 ObjectTypeVar var = ObjectType::_narrow(
m_objref);
464 if (CORBA::is_nil(var))
500 return m_var.inout();
529 return m_var.inout();
552 m_var = ObjectType::_nil();
566 #endif // RTC_CORBACONSUMER_H ObjectTypeVar m_var
CORBA object which has been set.
Definition: CorbaConsumer.h:563
virtual void releaseObject()
Clear CORBA object setting.
Definition: CorbaConsumer.h:549
CorbaConsumerBase & operator=(const CorbaConsumerBase &x)
Assignment operator.
Definition: CorbaConsumer.h:149
virtual bool setObject(CORBA::Object_ptr obj)
Set CORBA Object.
Definition: CorbaConsumer.h:221
Definition: CorbaConsumer.h:94
virtual void releaseObject()
Clear CORBA object setting.
Definition: CorbaConsumer.h:276
Definition: CorbaConsumer.h:338
CorbaConsumer & operator=(const CorbaConsumer &x)
Assignment operator.
Definition: CorbaConsumer.h:394
CORBA::Object_var m_objref
CORBA object which is set.
Definition: CorbaConsumer.h:289
void swap(CorbaConsumer &x)
Definition: CorbaConsumer.h:401
CorbaConsumerBase(const CorbaConsumerBase &x)
Copy Consructor.
Definition: CorbaConsumer.h:125
virtual bool setObject(CORBA::Object_ptr obj)
Set Object.
Definition: CorbaConsumer.h:454
virtual ~CorbaConsumerBase(void)
Virtual destructor.
Definition: CorbaConsumer.h:189
ObjectTypePtr _ptr()
Get Object reference narrowed as ObjectType.
Definition: CorbaConsumer.h:498
ObjectTypePtr operator->()
Get Object reference narrowed as ObjectType.
Definition: CorbaConsumer.h:527
CorbaConsumerBase()
Consructor.
Definition: CorbaConsumer.h:108
CorbaConsumer()
Consructor.
Definition: CorbaConsumer.h:353
virtual ~CorbaConsumer(void)
Virtual destructor.
Definition: CorbaConsumer.h:421
CorbaConsumer(const CorbaConsumer &x)
Copy constructor.
Definition: CorbaConsumer.h:370
void swap(CorbaConsumerBase &x)
swap function
Definition: CorbaConsumer.h:171
virtual CORBA::Object_ptr getObject()
Get CORBA Object.
Definition: CorbaConsumer.h:254