17 #ifndef _CMS_CMSPROPERTIES_H_ 18 #define _CMS_CMSPROPERTIES_H_ 45 virtual int size()
const = 0;
52 virtual bool isEmpty()
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;
94 virtual bool hasProperty(
const std::string& name)
const = 0;
106 virtual std::string
remove(
const std::string& name) = 0;
114 virtual std::vector<std::string> propertyNames()
const = 0;
123 virtual std::vector< std::pair< std::string, std::string > > toArray()
const = 0;
143 virtual void clear() = 0;
151 virtual std::string toString()
const = 0;
#define CMS_API
Definition: Config.h:31
Interface for a Java-like properties object.
Definition: CMSProperties.h:34
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements...
Definition: DestinationResolver.h:23