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();