blob: 0240c1ba709083fbc33e6b920f8d8b79b7395b88 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
// **********************************************************************
//
// Copyright (c) 2001
// ZeroC, Inc.
// Huntsville, AL, USA
//
// All Rights Reserved
//
// **********************************************************************
#ifndef ICE_PROPERTIES_I_H
#define ICE_PROPERTIES_I_H
#include <IceUtil/Mutex.h>
#include <Ice/Properties.h>
namespace Ice
{
class ICE_API PropertiesI : public Properties, public IceUtil::Mutex
{
public:
virtual std::string getProperty(const std::string&);
virtual std::string getPropertyWithDefault(const std::string&, const std::string&);
virtual Ice::Int getPropertyAsInt(const std::string&);
virtual Ice::Int getPropertyAsIntWithDefault(const std::string&, Ice::Int);
virtual PropertyDict getPropertiesForPrefix(const std::string&);
virtual void setProperty(const std::string&, const std::string&);
virtual StringSeq getCommandLineOptions();
virtual StringSeq parseCommandLineOptions(const std::string&, const StringSeq&);
virtual void load(const std::string&);
virtual PropertiesPtr clone();
private:
PropertiesI();
PropertiesI(StringSeq&);
PropertiesI(int&, char*[]);
friend ICE_API PropertiesPtr createProperties();
friend ICE_API PropertiesPtr createProperties(StringSeq&);
friend ICE_API PropertiesPtr createProperties(int&, char*[]);
void parseLine(const std::string&);
void loadConfig();
std::map<std::string, std::string> _properties;
};
}
#endif
|