18 #ifndef _ACTIVEMQ_UTIL_ACTIVEMQPROPERTIES_H_
19 #define _ACTIVEMQ_UTIL_ACTIVEMQPROPERTIES_H_
49 return this->properties;
53 return this->properties;
57 this->properties = props;
61 return properties.size();
65 return properties.isEmpty();
68 virtual const char*
getProperty(
const std::string& name)
const {
69 return properties.getProperty(name);
72 virtual std::string
getProperty(
const std::string& name,
const std::string& defaultValue)
const {
73 return properties.getProperty(name, defaultValue);
76 virtual void setProperty(
const std::string& name,
const std::string& value) {
77 properties.setProperty(name, value);
81 return properties.hasProperty(name);
84 virtual std::string
remove(
const std::string& name) {
85 return properties.remove(name);
89 return properties.propertyNames();
92 virtual std::vector<std::pair<std::string, std::string> >
toArray()
const {
93 return properties.toArray();
96 virtual void copy(
const CMSProperties* source);
98 virtual CMSProperties* clone()
const;
105 return properties.toString();
virtual int size() const
Returns the current count of all the Properties that are currently stored in the Properties object...
Definition: ActiveMQProperties.h:60
#define AMQCPP_API
Definition: Config.h:30
virtual void setProperties(decaf::util::Properties &props)
Definition: ActiveMQProperties.h:56
virtual const decaf::util::Properties & getProperties() const
Definition: ActiveMQProperties.h:52
virtual const char * getProperty(const std::string &name) const
Looks up the value for the given property.
Definition: ActiveMQProperties.h:68
virtual void setProperty(const std::string &name, const std::string &value)
Sets the value for a given property.
Definition: ActiveMQProperties.h:76
virtual bool isEmpty() const
Returns true if the properties object is empty.
Definition: ActiveMQProperties.h:64
virtual void clear()
Clears all properties from the map.
Definition: ActiveMQProperties.h:100
virtual std::vector< std::pair< std::string, std::string > > toArray() const
Method that serializes the contents of the property map to an array.
Definition: ActiveMQProperties.h:92
Interface for a Java-like properties object.
Definition: CMSProperties.h:34
virtual bool hasProperty(const std::string &name) const
Check to see if the Property exists in the set.
Definition: ActiveMQProperties.h:80
virtual std::vector< std::string > propertyNames() const
Returns a vector containing all the names of the properties currently stored in the Properties object...
Definition: ActiveMQProperties.h:88
virtual decaf::util::Properties & getProperties()
Definition: ActiveMQProperties.h:48
virtual std::string getProperty(const std::string &name, const std::string &defaultValue) const
Looks up the value for the given property.
Definition: ActiveMQProperties.h:72
Java-like properties class for mapping string names to string values.
Definition: Properties.h:53
Implementation of the CMSProperties interface that delegates to a decaf::util::Properties object...
Definition: ActiveMQProperties.h:37
virtual std::string toString() const
Formats the contents of the Properties Object into a string that can be logged, etc.
Definition: ActiveMQProperties.h:104