17#ifndef _CMS_CMSPROPERTIES_H_
18#define _CMS_CMSPROPERTIES_H_
45 virtual int size()
const = 0;
62 virtual const char*
getProperty(
const std::string& name)
const = 0;
74 virtual std::string
getProperty(
const std::string& name,
const std::string& defaultValue)
const = 0;
85 virtual void setProperty(
const std::string& name,
const std::string& value) = 0;
106 virtual std::string
remove(
const std::string& name) = 0;
123 virtual std::vector< std::pair< std::string, std::string > >
toArray()
const = 0;
Interface for a Java-like properties object.
Definition CMSProperties.h:34
virtual void copy(const CMSProperties *source)=0
Copies the contents of the given properties object to this one.
virtual bool hasProperty(const std::string &name) const =0
Check to see if the Property exists in the set.
virtual std::string toString() const =0
Formats the contents of the Properties Object into a string that can be logged, etc.
virtual const char * getProperty(const std::string &name) const =0
Looks up the value for the given property.
virtual std::string getProperty(const std::string &name, const std::string &defaultValue) const =0
Looks up the value for the given property.
virtual std::string remove(const std::string &name)=0
Removes the property with the given name.
virtual void clear()=0
Clears all properties from the map.
virtual int size() const =0
Returns the current count of all the Properties that are currently stored in the Properties object.
virtual std::vector< std::string > propertyNames() const =0
Returns a vector containing all the names of the properties currently stored in the Properties object...
virtual void setProperty(const std::string &name, const std::string &value)=0
Sets the value for a given property.
virtual CMSProperties * clone() const =0
Clones this object.
virtual std::vector< std::pair< std::string, std::string > > toArray() const =0
Method that serializes the contents of the property map to an array.
virtual bool isEmpty() const =0
Returns true if the properties object is empty.
#define CMS_API
Definition Config.h:31
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements.
Definition DestinationResolver.h:23