CORBA Programming Reference
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Type-safe extraction operators for Any.
CORBA::Boolean CORBA::Any::operator>>=(to_boolean Value) const
CORBA::Boolean CORBA::Any::operator>>=(to_char Value) const
CORBA::Boolean CORBA::Any::operator>>=(to_octet Value) const
CORBA::Boolean CORBA::Any::operator>>=(to_object Value) const
CORBA::Boolean CORBA::Any::operator>>=(to_string Value) const
These extraction member functions perform a type-safe extraction of a CORBA::Boolean
, a CORBA::Char
, a CORBA::Octet
, a CORBA::Object
, or
a String
reference from an Any. These member functions are helpers nested in the Any class. Their purpose is to distinguish extractions of the OMG IDL types: Boolean, char, and octet (C++ does not require these to be distinct types).
If the Any contains the specified type, this member function assigns the value in the Any object reference to the output variable, Value
, and returns CORBA_TRUE
. If the Any object does not contain the appropriate type, CORBA_FALSE
is returned.
![]() ![]() |
![]() |
![]() |