2012-02-08 00:01:02 +01:00
|
|
|
#ifndef register_hh_INCLUDED
|
|
|
|
#define register_hh_INCLUDED
|
|
|
|
|
|
|
|
#include "memoryview.hh"
|
2013-04-09 20:05:40 +02:00
|
|
|
#include "string.hh"
|
2012-02-08 00:01:02 +01:00
|
|
|
|
|
|
|
namespace Kakoune
|
|
|
|
{
|
|
|
|
|
2013-02-18 14:00:43 +01:00
|
|
|
struct Context;
|
2012-08-05 20:13:41 +02:00
|
|
|
|
2012-02-08 00:01:02 +01:00
|
|
|
class Register
|
|
|
|
{
|
|
|
|
public:
|
2012-06-29 18:37:17 +02:00
|
|
|
virtual ~Register() {}
|
|
|
|
virtual Register& operator=(const memoryview<String>& values) = 0;
|
2012-02-08 00:01:02 +01:00
|
|
|
|
2012-08-05 20:13:41 +02:00
|
|
|
virtual memoryview<String> values(const Context& context) = 0;
|
2012-02-08 00:01:02 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif // register_hh_INCLUDED
|
|
|
|
|