18 #ifndef _DECAF_UTIL_PROPERTIES_H_ 19 #define _DECAF_UTIL_PROPERTIES_H_ 39 class PropertiesInternal;
56 PropertiesInternal*
internal;
105 const char* getProperty(
const std::string& name )
const;
118 std::string getProperty(
const std::string& name,
const std::string& defaultValue )
const;
131 std::string setProperty(
const std::string& name,
const std::string& value );
141 bool hasProperty(
const std::string& name )
const;
151 std::string
remove(
const std::string& name );
161 std::vector<std::string> propertyNames()
const;
169 std::vector< std::pair< std::string, std::string > > toArray()
const;
204 bool equals(
const Properties& source )
const;
211 std::string toString()
const;
Map template that wraps around a std::map to provide a more user-friendly interface and to provide co...
Definition: StlMap.h:47
#define DECAF_API
Definition: Config.h:29
Base interface for any class that wants to represent an output stream of bytes.
Definition: OutputStream.h:39
Java-like properties class for mapping string names to string values.
Definition: Properties.h:53
Decaf's implementation of a Smart Pointer that is a template on a Type and is Thread Safe if the defa...
Definition: Pointer.h:53
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements...
Definition: AprPool.h:25
decaf::lang::Pointer< Properties > defaults
Default list used to answer for any keys not found in the properties list, can be filled in by anothe...
Definition: Properties.h:64