Avoid an easy-to-fix function cast
[geany-mirror.git] / scintilla / lexilla / lexlib / PropSetSimple.h
blobc5d85f6a90de99355eb25e7da57a0fb15c09a8c1
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.
8 #ifndef PROPSETSIMPLE_H
9 #define PROPSETSIMPLE_H
11 namespace Lexilla {
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();
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;
31 #endif