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

Subversion Repositories riscv_vhdl

[/] [riscv_vhdl/] [trunk/] [debugger/] [src/] [common/] [iface.h] - Rev 2

Go to most recent revision | Compare with Previous | Blame | View Log

/**
 * @file
 * @copyright  Copyright 2016 GNSS Sensor Ltd. All right reserved.
 * @author     Sergey Khabarov - sergeykhbr@gmail.com
 * @brief      Base interface declaration of the Core.
 */
 
#ifndef __DEBUGGER_IFACE_H__
#define __DEBUGGER_IFACE_H__
 
namespace debugger {
 
class IFace {
public:
    IFace(const char *name) : ifname_(name) {}
    virtual ~IFace() {}
 
    /** Get brief information. */
    virtual const char *getBrief() { return "Brief info not defined"; }
 
    /** Get detailed description. */
    virtual const char *getDetail() { return "Detail info not defined"; }
 
    /** Get interface name. */
    const char *getFaceName() { return ifname_; }
 
protected:
    const char *ifname_;
};
 
}  // namespace debugger
 
#endif  // __DEBUGGER_IFACE_H__
 

Go to most recent revision | 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.