Commit | Line | Data |
---|---|---|
43394cd7 Z |
1 | #ifndef SEC_NATIVE_FEATURE_CPPIF_H |
2 | #define SEC_NATIVE_FEATURE_CPPIF_H | |
3 | ||
4 | #include <string> | |
5 | #include <map> | |
6 | ||
7 | class SecNativeFeature { | |
8 | public: | |
9 | bool getEnableStatus(const char* tag); | |
10 | bool getEnableStatus(const char* tag, bool defaultValue); | |
11 | const char* getString(const char* tag); | |
12 | const char* getString(const char* tag, char* defaultValue); | |
13 | int getInteger(const char* tag); | |
14 | int getInteger(const char* tag, int defaultValue); | |
15 | ||
16 | static SecNativeFeature* getInstance(); | |
17 | private: | |
18 | static SecNativeFeature* _instance; | |
19 | SecNativeFeature(); | |
20 | ~SecNativeFeature(); | |
21 | int _loadFeature(); | |
22 | int _loadDefault(); | |
23 | std::map<std::string,std::string> _features; | |
24 | }; | |
25 | ||
26 | #endif // SEC_NATIVE_FEATURE_CPPIF_H | |
27 |