pineapple-notepad/3rdparty/lexilla540/lexilla/lexlib/PropSetSimple.h

32 lines
851 B
C
Raw Permalink Normal View History

2024-07-02 23:47:26 +08:00
// Scintilla source code edit control
/** @file PropSetSimple.h
** A basic string to string map.
**/
// Copyright 1998-2009 by Neil Hodgson <neilh@scintilla.org>
// The License.txt file describes the conditions under which this software may be distributed.
#ifndef PROPSETSIMPLE_H
#define PROPSETSIMPLE_H
namespace Lexilla {
class PropSetSimple {
void *impl;
public:
PropSetSimple();
// Deleted so PropSetSimple objects can not be copied.
PropSetSimple(const PropSetSimple&) = delete;
PropSetSimple(PropSetSimple&&) = delete;
PropSetSimple &operator=(const PropSetSimple&) = delete;
PropSetSimple &operator=(PropSetSimple&&) = delete;
virtual ~PropSetSimple();
bool Set(std::string_view key, std::string_view val);
const char *Get(std::string_view key) const;
int GetInt(std::string_view key, int defaultValue=0) const;
};
}
#endif