| 1 | // Scintilla source code edit control |
| 2 | /** @file PropSetSimple.h |
| 3 | ** A basic string to string map. |
| 4 | **/ |
| 5 | // Copyright 1998-2009 by Neil Hodgson <neilh@scintilla.org> |
| 6 | // The License.txt file describes the conditions under which this software may be distributed. |
| 7 | |
| 8 | #ifndef PROPSETSIMPLE_H |
| 9 | #define PROPSETSIMPLE_H |
| 10 | |
| 11 | namespace Lexilla { |
| 12 | |
| 13 | class PropSetSimple { |
| 14 | void *impl; |
| 15 | public: |
| 16 | PropSetSimple(); |
| 17 | // Deleted so PropSetSimple objects can not be copied. |
| 18 | PropSetSimple(const PropSetSimple&) = delete; |
| 19 | PropSetSimple(PropSetSimple&&) = delete; |
| 20 | PropSetSimple &operator=(const PropSetSimple&) = delete; |
| 21 | PropSetSimple &operator=(PropSetSimple&&) = delete; |
| 22 | virtual ~PropSetSimple(); |
| 23 | |
| 24 | bool Set(std::string_view key, std::string_view val); |
| 25 | const char *Get(std::string_view key) const; |
| 26 | int GetInt(std::string_view key, int defaultValue=0) const; |
| 27 | }; |
| 28 | |
| 29 | } |
| 30 | |
| 31 | #endif |
| 32 | |