OpenCores
URL https://opencores.org/ocsvn/riscv_vhdl/riscv_vhdl/trunk

Subversion Repositories riscv_vhdl

[/] [riscv_vhdl/] [trunk/] [debugger/] [src/] [simple_plugin/] [isimple_plugin.h] - Blame information for rev 4

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 4 sergeykhbr
/**
2
 * @file
3
 * @copyright  Copyright 2016 GNSS Sensor Ltd. All right reserved.
4
 * @author     Sergey Khabarov - sergeykhbr@gmail.com
5
 * @brief      Demo plugin interface.
6
 */
7
 
8
#ifndef __DEBUGGER_SIMPLE_PLUGIN_H__
9
#define __DEBUGGER_SIMPLE_PLUGIN_H__
10
 
11
#include "iface.h"
12
 
13
namespace debugger {
14
 
15
static const char *const IFACE_SIMPLE_PLUGIN = "ITap";
16
 
17
static const char *const ISimplePlugin_brief =
18
"Simple plugin interface example.";
19
 
20
static const char *const ISimplePlugin_detail =
21
"This interface is used to interact with the plugin library.";
22
 
23
class ISimplePlugin : public IFace {
24
public:
25
    ISimplePlugin() : IFace(IFACE_SIMPLE_PLUGIN) {}
26
 
27
    virtual const char *getBrief() { return ISimplePlugin_brief; }
28
 
29
    virtual const char *getDetail() { return ISimplePlugin_detail; }
30
 
31
    virtual int exampleAction(int val) =0;
32
};
33
 
34
}  // namespace debugger
35
 
36
#endif  // __DEBUGGER_SIMPLE_PLUGIN_H__

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.