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

Subversion Repositories riscv_vhdl

[/] [riscv_vhdl/] [trunk/] [debugger/] [src/] [common/] [iface.h] - Blame information for rev 2

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

Line No. Rev Author Line
1 2 sergeykhbr
/**
2
 * @file
3
 * @copyright  Copyright 2016 GNSS Sensor Ltd. All right reserved.
4
 * @author     Sergey Khabarov - sergeykhbr@gmail.com
5
 * @brief      Base interface declaration of the Core.
6
 */
7
 
8
#ifndef __DEBUGGER_IFACE_H__
9
#define __DEBUGGER_IFACE_H__
10
 
11
namespace debugger {
12
 
13
class IFace {
14
public:
15
    IFace(const char *name) : ifname_(name) {}
16
    virtual ~IFace() {}
17
 
18
    /** Get brief information. */
19
    virtual const char *getBrief() { return "Brief info not defined"; }
20
 
21
    /** Get detailed description. */
22
    virtual const char *getDetail() { return "Detail info not defined"; }
23
 
24
    /** Get interface name. */
25
    const char *getFaceName() { return ifname_; }
26
 
27
protected:
28
    const char *ifname_;
29
};
30
 
31
}  // namespace debugger
32
 
33
#endif  // __DEBUGGER_IFACE_H__

powered by: WebSVN 2.1.0

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