0.4.00.4.10.4.2stable
|
Last change
on this file since a60995a was
7e33d82,
checked in by Michael Medin <michael@…>, 5 years ago
|
|
fixed the build environment a bit...
|
-
Property mode set to
100644
|
|
File size:
831 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::wstring> sectionList; |
|---|
| 11 | TSettings(void) |
|---|
| 12 | { |
|---|
| 13 | } |
|---|
| 14 | |
|---|
| 15 | virtual ~TSettings(void) |
|---|
| 16 | { |
|---|
| 17 | } |
|---|
| 18 | virtual std::wstring getActiveType() = 0; |
|---|
| 19 | virtual sectionList getSections(unsigned int bufferLength = BUFF_LEN) = 0; |
|---|
| 20 | virtual sectionList getSection(std::wstring section, unsigned int bufferLength = BUFF_LEN) = 0; |
|---|
| 21 | virtual std::wstring getString(std::wstring section, std::wstring key, std::wstring defaultValue = _T("")) const = 0; |
|---|
| 22 | virtual void setString(std::wstring section, std::wstring key, std::wstring value) = 0; |
|---|
| 23 | virtual int getInt(std::wstring section, std::wstring key, int defaultValue = 0) = 0; |
|---|
| 24 | virtual void setInt(std::wstring section, std::wstring key, int value) = 0; |
|---|
| 25 | virtual int getActiveTypeID() = 0; |
|---|
| 26 | }; |
|---|
Note: See
TracBrowser
for help on using the repository browser.