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();
68 virtual const char*
getProperty(
const std::string& name)
const {
72 virtual std::string
getProperty(
const std::string& name,
const std::string& defaultValue)
const {
76 virtual void setProperty(
const std::string& name,
const std::string& value) {
84 virtual std::string
remove(
const std::string& name) {
85 return properties.
remove(name);
92 virtual std::vector<std::pair<std::string, std::string> >
toArray()
const {
96 virtual void copy(
const CMSProperties* source);
98 virtual CMSProperties* clone()
const;
virtual const decaf::util::Properties & getProperties() const
Definition: ActiveMQProperties.h:52
const char * getProperty(const std::string &name) const
Looks up the value for the given property.
bool isEmpty() const
Returns true if the properties object is empty.
std::string toString() const
Formats the contents of the Properties Object into a string that can be logged, etc.
#define AMQCPP_API
Definition: Config.h:30
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 void setProperties(decaf::util::Properties &props)
Definition: ActiveMQProperties.h:56
virtual int size() const
Returns the current count of all the Properties that are currently stored in the Properties object...
Definition: ActiveMQProperties.h:60
virtual const char * getProperty(const std::string &name) const
Looks up the value for the given property.
Definition: ActiveMQProperties.h:68
virtual bool hasProperty(const std::string &name) const
Check to see if the Property exists in the set.
Definition: ActiveMQProperties.h:80
virtual void setProperty(const std::string &name, const std::string &value)
Sets the value for a given property.
Definition: ActiveMQProperties.h:76
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
std::vector< std::pair< std::string, std::string > > toArray() const
Method that serializes the contents of the property map to an array.
void clear()
Clears all properties from the map.
Interface for a Java-like properties object.
Definition: CMSProperties.h:34
std::vector< std::string > propertyNames() const
Returns an enumeration of all the keys in this property list, including distinct keys in the default ...
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
std::string setProperty(const std::string &name, const std::string &value)
Sets the value for a given property.
virtual decaf::util::Properties & getProperties()
Definition: ActiveMQProperties.h:48
std::string remove(const std::string &name)
Removes the property with the given name.
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements...
Definition: CachedConsumer.h:24
Java-like properties class for mapping string names to string values.
Definition: Properties.h:53
virtual std::string toString() const
Formats the contents of the Properties Object into a string that can be logged, etc.
Definition: ActiveMQProperties.h:104
bool hasProperty(const std::string &name) const
Check to see if the Property exists in the set.
Implementation of the CMSProperties interface that delegates to a decaf::util::Properties object...
Definition: ActiveMQProperties.h:37
virtual bool isEmpty() const
Returns true if the properties object is empty.
Definition: ActiveMQProperties.h:64