2009-04-24 23:35:41 +00:00
|
|
|
// Scintilla source code edit control
|
|
|
|
/** @file PropSet.h
|
2009-08-23 02:24:48 +00:00
|
|
|
** An interface to the methods needed for access to property sets inside lexers.
|
2009-04-24 23:35:41 +00:00
|
|
|
**/
|
2009-08-23 02:24:48 +00:00
|
|
|
// Copyright 1998-2009 by Neil Hodgson <neilh@scintilla.org>
|
2009-04-24 23:35:41 +00:00
|
|
|
// The License.txt file describes the conditions under which this software may be distributed.
|
|
|
|
|
|
|
|
#ifndef PROPSET_H
|
|
|
|
#define PROPSET_H
|
|
|
|
|
|
|
|
#ifdef SCI_NAMESPACE
|
|
|
|
namespace Scintilla {
|
|
|
|
#endif
|
|
|
|
|
2009-08-23 02:24:48 +00:00
|
|
|
class PropertyGet {
|
2009-04-24 23:35:41 +00:00
|
|
|
public:
|
2009-08-23 02:24:48 +00:00
|
|
|
virtual char *ToString() const=0; // Caller must delete[] the return value
|
|
|
|
virtual int GetInt(const char *key, int defaultValue=0) const=0;
|
|
|
|
virtual ~PropertyGet() {}
|
2009-04-24 23:35:41 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#ifdef SCI_NAMESPACE
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|