#include <acsutilAnyAide.h>
Static Public Member Functions | |
CORBA::TCKind | getRealType (const CORBA::Any &) |
std::string | getId (const CORBA::Any &) |
std::string | anyToString (const CORBA::Any &, unsigned short precision=0) |
template<class T> T | getValue (const CORBA::Any &any) |
template<class T> void | setValue (CORBA::Any &any, const T &value) |
bool | isNull (const CORBA::Any &) |
bool | isString (const CORBA::Any &) |
bool | isDouble (const CORBA::Any &) |
bool | isFloat (const CORBA::Any &) |
bool | isLong (const CORBA::Any &) |
bool | isLongLong (const CORBA::Any &) |
bool | isULongLong (const CORBA::Any &) |
bool | isULong (const CORBA::Any &) |
bool | isPattern (const CORBA::Any &) |
bool | isDoubleSeq (const CORBA::Any &) |
bool | isLongSeq (const CORBA::Any &) |
bool | isStringSeq (const CORBA::Any &) |
bool | isFloatSeq (const CORBA::Any &) |
bool | isEnum (const CORBA::Any &) |
bool | isStruct (const CORBA::Any &) |
Static Public Attributes | |
const std::string | nullType_m |
const std::string | stringType_m |
const std::string | doubleType_m |
const std::string | floatType_m |
const std::string | longType_m |
const std::string | longLongType_m |
const std::string | uLongLongType_m |
const std::string | uLongType_m |
const std::string | patternType_m |
const std::string | doubleSeqType_m |
const std::string | longSeqType_m |
const std::string | stringSeqType_m |
const std::string | floatSeqType_m |
const std::string | unknownType_m |
Static Private Member Functions | |
std::string | enumToString (const CORBA::Any &) |
|
Converts the any's value to a string. Only works for native CORBA types such as longs, doubles, strings, etc at the moment and sequence typdefs defined within acscommon.idl. Support for enumerations is given however.
|
|
Converts the (enum) any's value to a string.
|
|
Returns the IFR ID of the any (i.e., "IDL:alma/someModule/someEnum:1.0"). This method can only be used on any's with the following TCKind:
|
|
Returns the CORBA::TCKind of the any's underlying type. TCKind is an enum created by OMG/CORBA (see page 693 of Advanced CORBA Programming with C++) which defines enumerations like tk_null, tk_ulong, tk_enum, tk_struct, etc. |
|
Converts a CORBA any to its real value and returns that. In the event that the template parameter T is not compatible with the any, an exception is thrown. Typical usage of this method will be something similar too:
|
|
Returns true if the any contains a double value. |
|
Returns true if the any contains a doubleSeq value. |
|
Returns true if the any contains an enum value. |
|
Returns true if the any contains a float value. |
|
Returns true if the any contains a floatSeq value. |
|
Returns true if the any contains a long value. |
|
Returns true if the any contains a long long value. |
|
Returns true if the any contains a longSeq value. |
|
Returns true if the any contains a null value. |
|
Returns true if the any contains a pattern value. |
|
Returns true if the any contains a string value. |
|
Returns true if the any contains a stringSeq value. |
|
Returns true if the any contains a struct value. |
|
Returns true if the any contains a pattern value. |
|
Returns true if the any contains a unsigned long long value. |
|
Sets the value of a CORBA any. This method sets the value of a CORBA any by copying the value.
|
|
ACS(CORBA) doubleSeq IFR ID |
|
ACS(CORBA) double IFR ID |
|
ACS(CORBA) floatSeq IFR ID |
|
ACS(CORBA) float IFR ID |
|
ACS(CORBA) longlong IFR ID |
|
ACS(CORBA) longSeq IFR ID |
|
ACS(CORBA) long IFR ID |
|
ACS(CORBA) null IFR ID |
|
ACS(CORBA) ACS::Pattern (aka unsigned long long) IFR ID |
|
ACS(CORBA) stringSeq IFR ID |
|
ACS(CORBA) string IFR ID |
|
ACS(CORBA) ulonglong IFR ID |
|
ACS(CORBA) ulong IFR ID |
|
This ID is returned by methods in the AnyAide class if the IFR ID cannot be determined for some reason or another. This is possible for certain simple CORBA types (short, char, etc) that are not supported by BACI |