|
Last change
on this file since c8ebdec was
c8ebdec,
checked in by Michael Medin <michael@…>, 7 years ago
|
|
Updated with reg settings (take 1)
|
-
Property mode set to
100644
|
|
File size:
777 bytes
|
| Line | |
|---|
| 1 | #pragma once |
|---|
| 2 | |
|---|
| 3 | #include <string> |
|---|
| 4 | #include <windows.h> |
|---|
| 5 | #define BUFF_LEN 4096 |
|---|
| 6 | |
|---|
| 7 | class TSettings |
|---|
| 8 | { |
|---|
| 9 | public: |
|---|
| 10 | typedef std::list<std::string> sectionList; |
|---|
| 11 | TSettings(void) |
|---|
| 12 | { |
|---|
| 13 | } |
|---|
| 14 | |
|---|
| 15 | virtual ~TSettings(void) |
|---|
| 16 | { |
|---|
| 17 | } |
|---|
| 18 | virtual std::string getActiveType() = 0; |
|---|
| 19 | virtual sectionList getSections(unsigned int bufferLength = BUFF_LEN) = 0; |
|---|
| 20 | virtual sectionList getSection(std::string section, unsigned int bufferLength = BUFF_LEN) = 0; |
|---|
| 21 | virtual std::string getString(std::string section, std::string key, std::string defaultValue = "") const = 0; |
|---|
| 22 | virtual void setString(std::string section, std::string key, std::string value) = 0; |
|---|
| 23 | virtual int getInt(std::string section, std::string key, int defaultValue = 0) = 0; |
|---|
| 24 | virtual void setInt(std::string section, std::string key, int value) = 0; |
|---|
| 25 | }; |
|---|
Note: See
TracBrowser
for help on using the repository browser.