#include <baciValue.h>
Collaboration diagram for baci::BACIValue:
Public Types | |
typedef unsigned char | octet |
enum | Type { type_null = 0, type_pointer = 1, type_string = 2, type_double = 3, type_long = 4, type_pattern = 9, type_doubleSeq = 6, type_longSeq = 7, type_longLong = 8, type_uLongLong = 9, type_stringSeq = 10, type_float = 11, type_floatSeq = 12 } |
Public Member Functions | |
BACIValue () | |
BACIValue (const Type type, const unsigned long bound) | |
BACIValue (const BACIValue &value) | |
BACIValue (const BACIdouble &value) | |
BACIValue (const BACIfloat &value) | |
BACIValue (const BACIlong &value) | |
BACIValue (const BACIlongLong &value) | |
BACIValue (const BACIuLongLong &value) | |
BACIValue (const ACE_CString &value) | |
BACIValue (const char *value) | |
User defined. | |
BACIValue (const void *&value) | |
BACIValue (void *value) | |
BACIValue (const BACIdoubleSeq &value) | |
BACIValue (const BACIfloatSeq &value) | |
BACIValue (const BACIlongSeq &value) | |
BACIValue (const BACIstringSeq &value) | |
BACIValue (const BACIpattern &value, const CORBA::Any &any) | |
void | reset () |
BACIValue & | operator= (const BACIValue &value) |
bool | operator== (const BACIValue &value) const |
bool | operator< (const BACIValue &value) const |
bool | operator<= (const BACIValue &value) const |
bool | lessThanDelta (const BACIValue &value, const BACIValue &delta) const |
bool | setType (Type type, unsigned long bound=0) |
Type | getType () const |
const char * | getArchiveType () const |
unsigned long | getBound () const |
unsigned long | isNull () const |
unsigned long | whyIsNull () const |
bool | noDelta () const |
~BACIValue () | |
const ACE_TCHAR * | stringValue () const |
ACE_CString | getValue (ACE_CString *v=0) const |
char * | getValue (const char **v=0) const |
User defined. | |
char * | getValue (char **v=0) const |
BACIdouble | doubleValue () const |
BACIdouble | getValue (BACIdouble *v=0) const |
BACIfloat | floatValue () const |
BACIfloat | getValue (BACIfloat *v=0) const |
BACIlong | longValue () const |
BACIlong | getValue (BACIlong *v=0) const |
BACIlongLong | longLongValue () const |
BACIlongLong | getValue (BACIlongLong *v=0) const |
BACIuLongLong | uLongLongValue () const |
BACIuLongLong | getValue (BACIuLongLong *v=0) const |
BACIpattern | patternValue () const |
CORBA::Any | enumValue () const |
CORBA::Any | getValue (CORBA::Any *v=0) const |
void * | pointerValue () const |
void * | getValue (void **v=0) const |
BACIdoubleSeq | doubleSeqValue () const |
BACIdoubleSeq | getValue (BACIdoubleSeq *v=0) const |
BACIfloatSeq | floatSeqValue () const |
BACIfloatSeq | getValue (BACIfloatSeq *v=0) const |
BACIlongSeq | longSeqValue () const |
BACIlongSeq | getValue (BACIlongSeq *v=0) const |
BACIstringSeq | stringSeqValue () const |
BACIstringSeq | getValue (BACIstringSeq *v=0) const |
bool | doubleValue (const BACIdouble &value) |
bool | setValue (const BACIdouble &value) |
bool | floatValue (const BACIfloat &value) |
bool | setValue (const BACIfloat &value) |
bool | longValue (const BACIlong &value) |
bool | setValue (const BACIlong &value) |
bool | longLongValue (const BACIlongLong &value) |
bool | setValue (const BACIlongLong &value) |
bool | uLongLongValue (const BACIuLongLong &value) |
bool | setValue (const BACIuLongLong &value) |
bool | patternValue (const BACIpattern &value) |
bool | enumValue (const BACIpattern &value, const CORBA::Any &anyVal) |
bool | stringValue (const ACE_CString &value) |
bool | setValue (const ACE_CString &value) |
bool | stringValue (const char *value) |
User defined. | |
bool | setValue (const char *value) |
bool | pointerValue (void *value) |
bool | doubleSeqValue (const BACIdoubleSeq &value) |
bool | setValue (const BACIdoubleSeq &value) |
bool | floatSeqValue (const BACIfloatSeq &value) |
bool | setValue (const BACIfloatSeq &value) |
bool | longSeqValue (const BACIlongSeq &value) |
bool | setValue (const BACIlongSeq &value) |
bool | stringSeqValue (const BACIstringSeq &value) |
bool | setValue (const BACIstringSeq &value) |
bool | toString (ACE_CString &value, bool specifyType=false) const |
bool | fromString (const ACE_CString value, bool specifyType=false) |
void | getAny (CORBA::Any &any) const |
Static Public Member Functions | |
Type | mapType (BACIdouble *v=0) |
Type | mapType (BACIfloat *v=0) |
Type | mapType (BACIlong *v=0) |
Type | mapType (char **v=0) |
Type | mapType (ACE_CString *v=0) |
Type | mapType (void **v=0) |
Type | mapType (BACIdoubleSeq *v=0) |
Type | mapType (BACIfloatSeq *v=0) |
Type | mapType (BACIlongSeq *v=0) |
Type | mapType (BACIlongLong *v=0) |
Type | mapType (BACIuLongLong *v=0) |
Type | mapType (BACIstringSeq *v=0) |
Static Public Attributes | |
const ACE_CString | typeName [] |
const ACE_CString | archiveTypeName [] |
const BACIValue | NullValue |
Protected Attributes | |
Type | type_m |
CORBA::Any | any_m |
bool | isEnum_m |
|
An 8-bit unsigned integer. |
|
Enumeration of all supported data types. If it's not listed here, it cannot be packed into a BACIValue.
|
|
Standard Contructor. The wrapped value will carry a Type::type_null value. |
|
Constructor with initialized type. By using this constructor, one can create a BACIValue object with any type, although the value is not directly settable.
|
|
Copy constructor: construct a value that will store the same data as the specified value.
|
|
Constructor BACIdouble
|
|
Constructor BACIfoat
|
|
Constructor BACIlong
|
|
Constructor BACIlongLong
|
|
Constructor realType
|
|
Constructor ACE_CString
|
|
User defined. Constructor char*
|
|
Constructor - Special case
|
|
Constructor - pointer (Special case
|
|
Constructor BACIdoubleSeq
|
|
Constructor BACIfloatSeq
|
|
Constructor BACIlongSeq
|
|
Constructor BACIstringSeq
|
|
Constructor CORBA::Any. Deprecated. Used to support CORBA enums. It is used by test in baci module. |
|
Destructor |
|
Mutator
|
|
Returns this object's underlying BACI value as a double sequence.
|
|
Mutator
|
|
Returns this object's underlying BACI value as a double.
|
|
Mutator
|
|
Deprecated.
|
|
Mutator
|
|
Returns this object's underlying BACI value as a double sequence.
|
|
Mutator
|
|
Returns this object's underlying BACI value as a double.
|
|
Convert from a string into a BACI type and encode it into this object.
|
|
Returns the BACIValue embedded within a CORBA any. Useful with archiving.
|
|
Get value type
|
|
Get value bound (for variable length data types; eg. strings)
|
|
Get value type
|
|
Returns this object's underlying BACI value as a string sequence.
|
|
Returns this object's underlying BACI value as a long sequence.
|
|
Returns this object's underlying BACI value as a float sequence.
|
|
Returns this object's underlying BACI value as a double sequence.
|
|
Returns this object's underlying BACI value as a void pointer.
|
|
Deprecated.
|
|
Returns this object's underlying BACI value as an unsigned long long.
|
|
Returns this object's underlying BACI value as a long long.
|
|
Returns this object's underlying BACI value as a long.
|
|
Returns this object's underlying BACI value as a float.
|
|
Returns this object's underlying BACI value as a double.
|
|
Given a pointer to character pointers, this method returns the stringified value of this object.
|
|
User defined. Given a const pointer to character pointers, this method returns the stringified value of this object.
|
|
Given a pointer to an ACE C string, this method returns the stringified value of this object.
|
|
Is value null value (not initialized)
|
|
Check if absolute difference between values is less than delta value
|
|
Mutator
|
|
Returns this object's underlying BACI value as a long long.
|
|
Mutator
|
|
Returns this object's underlying BACI value as a long sequence.
|
|
Mutator
|
|
Returns this object's underlying BACI value as a long.
|
|
Given a pointer to a baci::BACIstringSeq, this static method returns a the Type enumeration value.
|
|
Given a pointer to a baci::BACIuLongLong, this static method returns a the Type enumeration value.
|
|
Given a pointer to a baci::BACIlongLong, this static method returns a the Type enumeration value.
|
|
Given a pointer to a baci::BACIlongSeq, this static method returns a the Type enumeration value.
|
|
Given a pointer to a baci::BACIfloatSeq, this static method returns a the Type enumeration value.
|
|
Given a pointer to a baci::BACIdoubleSeq, this static method returns a the Type enumeration value.
|
|
Given a pointer to a void*, this static method returns a the Type enumeration value.
|
|
Given a pointer to an ACE_CString, this static method returns a the Type enumeration value.
|
|
Given a pointer to a char*, this static method returns a the Type enumeration value.
|
|
Given a pointer to a baci::BACIlong, this static method returns a the Type enumeration value.
|
|
Given a pointer to a baci::BACIfloat, this static method returns a the Type enumeration value.
|
|
Given a pointer to a baci::BACIdouble, this static method returns a the Type enumeration value.
|
|
Check if value equals no change (e.g. for double 0.0, int 0)
|
|
Check less-than Operator |
|
Check less-than or equal to Operator |
|
Equality Operator |
|
Check equals to Operator |
|
Mutator
|
|
Returns this object's underlying BACI value as a pattern.
|
|
Mutator
|
|
Returns this object's underlying BACI value as a void pointer.
|
|
Resets value to non-initialized state(VALUE_UNINITIALIZED, type_null type). |
|
Set the data type that this value will store. Makes the value capable of storing data of type Type. If the type currently being stored by the filed does not match Type, it is properly disposed. After using this function, the user should not assume that the data has been initialized, i.e. using accessor before a mutator is illegal. Example: BACIValue value; value.setType(BACIValue::type_string); |
|
Mutator
|
|
Mutator
|
|
Mutator
|
|
Mutator
|
|
Mutator
|
|
Mutator
|
|
Mutator
|
|
Mutator
|
|
Mutator
|
|
Mutator
|
|
Mutator
|
|
Mutator
|
|
Returns this object's underlying BACI value as a string sequence.
|
|
User defined. Mutator
|
|
Mutator
|
|
Stringifies this object's underlying BACI value.
|
|
Convert to string
|
|
Mutator
|
|
Returns this object's underlying BACI value as an unsigned long long.
|
|
Return the reason why the value was set as null value.
|
|
This any is used as a hack to support enumeration properties. Unless this BACIValue object is hiding an enumeration, do not use this. |
|
Array of strings initialized to contain what are essentially the same values as the Type enum. Values are: "invalid","invalid","string","double","long","long", "doubleSeq" (not supported by logging),"longSeq","longLong", "uLongLong","longString" Furthermore, this array can be indexed using the Type enum. |
|
|
|
Inlined data can be up to 8 bytes in length. This is sufficient for storing octets, short, long, and longlong integers, doubles and floats. |
|
This is set to true if the BACIValue is really an enumeration. |
|
A global predefined null BACIValue. |
|
|
|
Other types store a pointer to the actual data and a bound on the amount of data that can be stored there (e.g., number of characters for strings). A bound of 0 indicates "no limits". |
|
Identifies the type of data currently being stored. |
|
Array of strings initialized to contain what are essentially the same values as the Type enum. Values are: "null","pointer","string","double","long","pattern","doubleSeq", "longSeq","longLong","uLongLong", "longString" Furthermore, this array can be indexed using the Type enum. |
|
Describes why the value has type null |