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] - Rev 4

Compare with Previous | Blame | View Log

/**
 * @file
 * @copyright  Copyright 2016 GNSS Sensor Ltd. All right reserved.
 * @author     Sergey Khabarov - sergeykhbr@gmail.com
 * @brief      Demo plugin interface.
 */
 
#ifndef __DEBUGGER_SIMPLE_PLUGIN_H__
#define __DEBUGGER_SIMPLE_PLUGIN_H__
 
#include "iface.h"
 
namespace debugger {
 
static const char *const IFACE_SIMPLE_PLUGIN = "ITap";
 
static const char *const ISimplePlugin_brief = 
"Simple plugin interface example.";
 
static const char *const ISimplePlugin_detail = 
"This interface is used to interact with the plugin library.";
 
class ISimplePlugin : public IFace {
public:
    ISimplePlugin() : IFace(IFACE_SIMPLE_PLUGIN) {}
 
    virtual const char *getBrief() { return ISimplePlugin_brief; }
 
    virtual const char *getDetail() { return ISimplePlugin_detail; }
 
    virtual int exampleAction(int val) =0;
};
 
}  // namespace debugger
 
#endif  // __DEBUGGER_SIMPLE_PLUGIN_H__
 

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

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