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.
virtual void releaseObject()
Clear CORBA object setting.
CorbaConsumerBase & operator=(const CorbaConsumerBase &x)
Assignment operator.
virtual bool setObject(CORBA::Object_ptr obj)
Set CORBA Object.
virtual void releaseObject()
Clear CORBA object setting.
CorbaConsumer & operator=(const CorbaConsumer &x)
Assignment operator.
CORBA::Object_var m_objref
CORBA object which is set.
void swap(CorbaConsumer &x)
CorbaConsumerBase(const CorbaConsumerBase &x)
Copy Consructor.
virtual bool setObject(CORBA::Object_ptr obj)
Set Object.
virtual ~CorbaConsumerBase(void)
Virtual destructor.
ObjectTypePtr _ptr()
Get Object reference narrowed as ObjectType.
ObjectTypePtr operator->()
Get Object reference narrowed as ObjectType.
CorbaConsumerBase()
Consructor.
CorbaConsumer()
Consructor.
virtual ~CorbaConsumer(void)
Virtual destructor.
CorbaConsumer(const CorbaConsumer &x)
Copy constructor.
void swap(CorbaConsumerBase &x)
swap function
virtual CORBA::Object_ptr getObject()
Get CORBA Object.