You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
notepad-plus-plus/lexilla/lexlib/PropSetSimple.h

32 lines
851 B

// 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