|
Ice 3.7 C++98 API Reference
|
A property set used to configure Ice and Ice applications. More...
#include <Ice/Ice.h>


Public Types | |
| typedef PropertiesPtr | PointerType |
Public Member Functions | |
| virtual PropertiesPtr | clone () throw () =0 |
| Create a copy of this property set. | |
| virtual StringSeq | getCommandLineOptions () throw () =0 |
| Get a sequence of command-line options that is equivalent to this property set. | |
| virtual PropertyDict | getPropertiesForPrefix (const ::std::string &prefix) throw () =0 |
| Get all properties whose keys begins with prefix. | |
| virtual::std::string | getProperty (const ::std::string &key) throw () =0 |
| Get a property by key. | |
| virtual Int | getPropertyAsInt (const ::std::string &key) throw () =0 |
| Get a property as an integer. | |
| virtual Int | getPropertyAsIntWithDefault (const ::std::string &key, Int value) throw () =0 |
| Get a property as an integer. | |
| virtual StringSeq | getPropertyAsList (const ::std::string &key) throw () =0 |
| Get a property as a list of strings. | |
| virtual StringSeq | getPropertyAsListWithDefault (const ::std::string &key, const StringSeq &value) throw () =0 |
| Get a property as a list of strings. | |
| virtual::std::string | getPropertyWithDefault (const ::std::string &key, const ::std::string &value) throw () =0 |
| Get a property by key. | |
| virtual void | load (const ::std::string &file)=0 |
| Load properties from a file. | |
| virtual StringSeq | parseCommandLineOptions (const ::std::string &prefix, const StringSeq &options)=0 |
| Convert a sequence of command-line options into properties. | |
| virtual StringSeq | parseIceCommandLineOptions (const StringSeq &options)=0 |
| Convert a sequence of command-line options into properties. | |
| virtual void | setProperty (const ::std::string &key, const ::std::string &value)=0 |
| Set a property. | |
| virtual | ~Properties () |
| Public Member Functions inherited from Ice::LocalObject | |
| virtual bool | operator< (const LocalObject &) const |
| virtual bool | operator== (const LocalObject &) const |
| Public Member Functions inherited from IceUtil::Shared | |
| void | __clearFlag (unsigned char flag) |
| virtual void | __decRef () |
| virtual int | __getRef () const |
| bool | __hasFlag (unsigned char flag) |
| virtual void | __incRef () |
| void | __setFlag (unsigned char flag) |
| virtual void | __setNoDelete (bool) |
| Shared & | operator= (const Shared &) |
| Shared () | |
| Shared (const Shared &) | |
| virtual | ~Shared () |
Additional Inherited Members | |
| Static Public Attributes inherited from IceUtil::Shared | |
| static const unsigned char | NoDelete |
| Protected Attributes inherited from IceUtil::Shared | |
| unsigned char | _flags |
| IceUtilInternal::Atomic | _ref |
A property set used to configure Ice and Ice applications.
Properties are key/value pairs, with both keys and values being strings. By convention, property keys should have the form application-name[.category[.sub-category]].name.
|
virtual |
|
pure virtual | ||||||||||||
Create a copy of this property set.
|
pure virtual | ||||||||||||
Get a sequence of command-line options that is equivalent to this property set.
Each element of the returned sequence is a command-line option of the form –key=value.
|
pure virtual | |||||||||||||
Get all properties whose keys begins with prefix.
If prefix is an empty string, then all properties are returned.
| prefix | The prefix to search for (empty string if none). |
|
pure virtual | |||||||||||||
Get a property by key.
If the property is not set, an empty string is returned.
| key | The property key. |
|
pure virtual | |||||||||||||
Get a property as an integer.
If the property is not set, 0 is returned.
| key | The property key. |
|
pure virtual | |||||||||||||||
Get a property as an integer.
If the property is not set, the given default value is returned.
| key | The property key. |
| value | The default value to use if the property does not exist. |
|
pure virtual | |||||||||||||
Get a property as a list of strings.
The strings must be separated by whitespace or comma. If the property is not set, an empty list is returned. The strings in the list can contain whitespace and commas if they are enclosed in single or double quotes. If quotes are mismatched, an empty list is returned. Within single quotes or double quotes, you can escape the quote in question with a backslash, e.g. O'Reilly can be written as O'Reilly, "O'Reilly" or 'O\'Reilly'.
| key | The property key. |
|
pure virtual | |||||||||||||||
Get a property as a list of strings.
The strings must be separated by whitespace or comma. If the property is not set, the default list is returned. The strings in the list can contain whitespace and commas if they are enclosed in single or double quotes. If quotes are mismatched, the default list is returned. Within single quotes or double quotes, you can escape the quote in question with a backslash, e.g. O'Reilly can be written as O'Reilly, "O'Reilly" or 'O\'Reilly'.
| key | The property key. |
| value | The default value to use if the property is not set. |
|
pure virtual | |||||||||||||||
Get a property by key.
If the property is not set, the given default value is returned.
| key | The property key. |
| value | The default value to use if the property does not exist. |
|
pure virtual |
Load properties from a file.
| file | The property file. |
|
pure virtual |
Convert a sequence of command-line options into properties.
All options that begin with –prefix. are converted into properties. If the prefix is empty, all options that begin with – are converted to properties.
| prefix | The property prefix, or an empty string to convert all options starting with –. |
| options | The command-line options. |
|
pure virtual |
Convert a sequence of command-line options into properties.
All options that begin with one of the following prefixes are converted into properties: –Ice, –IceBox, –IceGrid, –IcePatch2, –IceSSL, –IceStorm, –Freeze, and –Glacier2.
| options | The command-line options. |
|
pure virtual |
Set a property.
To unset a property, set it to the empty string.
| key | The property key. |
| value | The property value. |