18#ifndef _ACTIVEMQ_UTIL_PRIMITIVEVALUENODE_H_
19#define _ACTIVEMQ_UTIL_PRIMITIVEVALUENODE_H_
#define AMQCPP_API
Definition: Config.h:30
Class that wraps around a single value of one of the many types.
Definition: PrimitiveValueNode.h:38
bool getBool() const
Gets the Boolean value of this Node.
void setLong(long long value)
Sets the value of this value node to the new value specified, this method overwrites any data that wa...
PrimitiveValueNode(unsigned char value)
Byte Value Constructor.
void setInt(int value)
Sets the value of this value node to the new value specified, this method overwrites any data that wa...
PrimitiveValueNode(const decaf::util::Map< std::string, PrimitiveValueNode > &value)
Primtive Map Value Constructor.
PrimitiveValueNode(float value)
Float Value Constructor.
std::string getString() const
Gets the String value of this Node.
bool operator==(const PrimitiveValueNode &node) const
Comparison Operator, compares this node to the other node.
void setValue(const PrimitiveValue &value, PrimitiveType valueType)
Sets the internal PrimitiveVale object to the new value along with the tag for the type that it consi...
void setMap(const decaf::util::Map< std::string, PrimitiveValueNode > &value)
Sets the value of this value node to the new value specified, this method overwrites any data that wa...
~PrimitiveValueNode()
Definition: PrimitiveValueNode.h:178
void setShort(short value)
Sets the value of this value node to the new value specified, this method overwrites any data that wa...
std::vector< unsigned char > getByteArray() const
Gets the Byte Array value of this Node.
short getShort() const
Gets the Short value of this Node.
float getFloat() const
Gets the Float value of this Node.
void setByteArray(const std::vector< unsigned char > &value)
Sets the value of this value node to the new value specified, this method overwrites any data that wa...
void clear()
Clears the value from this wrapper converting it back to a blank NULL_TYPE value.
PrimitiveValueNode(int value)
Int Value Constructor.
PrimitiveValueNode(const PrimitiveValueNode &node)
Copy constructor.
PrimitiveValueNode(const std::string &value)
String Value Constructor.
unsigned char getByte() const
Gets the Byte value of this Node.
PrimitiveValueNode()
Default Constructor, creates a value of the NULL_TYPE.
PrimitiveValueNode(char value)
Char Value Constructor.
PrimitiveValueNode(const decaf::util::List< PrimitiveValueNode > &value)
Primtive List Constructor.
PrimitiveValueNode(const std::vector< unsigned char > &value)
Byte Array Value Constructor.
void setBool(bool value)
Sets the value of this value node to the new value specified, this method overwrites any data that wa...
void setFloat(float value)
Sets the value of this value node to the new value specified, this method overwrites any data that wa...
int getInt() const
Gets the Integer value of this Node.
std::string toString() const
Creates a string representation of this value.
void setList(const decaf::util::List< PrimitiveValueNode > &value)
Sets the value of this value node to the new value specified, this method overwrites any data that wa...
PrimitiveValueNode(bool value)
Boolean Value Constructor.
void setString(const std::string &value)
Sets the value of this value node to the new value specified, this method overwrites any data that wa...
void setByte(unsigned char value)
Sets the value of this value node to the new value specified, this method overwrites any data that wa...
PrimitiveValueNode(short value)
Short Value Constructor.
PrimitiveValueNode(const char *value)
String Value Constructor.
void setChar(char value)
Sets the value of this value node to the new value specified, this method overwrites any data that wa...
PrimitiveValueNode(long long value)
Long Value Constructor.
long long getLong() const
Gets the Long value of this Node.
PrimitiveValueNode(double value)
Double Value Constructor.
void setDouble(double value)
Sets the value of this value node to the new value specified, this method overwrites any data that wa...
PrimitiveType getType() const
Gets the Value Type of this type wrapper.
Definition: PrimitiveValueNode.h:200
PrimitiveType
Enumeration for the various primitive types.
Definition: PrimitiveValueNode.h:44
const decaf::util::Map< std::string, PrimitiveValueNode > & getMap() const
Gets the Primitive Map value of this Node.
PrimitiveValue getValue() const
Gets the internal Primitive Value object from this wrapper.
Definition: PrimitiveValueNode.h:208
const decaf::util::List< PrimitiveValueNode > & getList() const
Gets the Primitive List value of this Node.
double getDouble() const
Gets the Double value of this Node.
char getChar() const
Gets the Character value of this Node.
An ordered collection (also known as a sequence).
Definition: List.h:47
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements.
Definition: CachedConsumer.h:24
Define a union type comprised of the various types.
Definition: PrimitiveValueNode.h:64
char charValue
Definition: PrimitiveValueNode.h:68
double doubleValue
Definition: PrimitiveValueNode.h:72
std::string * stringValue
Definition: PrimitiveValueNode.h:74
decaf::util::List< PrimitiveValueNode > * listValue
Definition: PrimitiveValueNode.h:76
long long longValue
Definition: PrimitiveValueNode.h:71
int intValue
Definition: PrimitiveValueNode.h:70
bool boolValue
Definition: PrimitiveValueNode.h:66
std::vector< unsigned char > * byteArrayValue
Definition: PrimitiveValueNode.h:75
unsigned char byteValue
Definition: PrimitiveValueNode.h:67
short shortValue
Definition: PrimitiveValueNode.h:69
float floatValue
Definition: PrimitiveValueNode.h:73
decaf::util::Map< std::string, PrimitiveValueNode > * mapValue
Definition: PrimitiveValueNode.h:77