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

Subversion Repositories riscv_vhdl

[/] [riscv_vhdl/] [trunk/] [debugger/] [src/] [common/] [coreservices/] [icmdexec.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      Command executer's interface.
6
 */
7
 
8
#ifndef __DEBUGGER_ICMDEXEC_H__
9
#define __DEBUGGER_ICMDEXEC_H__
10
 
11
#include "iface.h"
12
#include "attribute.h"
13
#include "icommand.h"
14
 
15
namespace debugger {
16
 
17
static const char *IFACE_CMD_EXECUTOR = "ICmdExecutor";
18
 
19
class ICmdExecutor : public IFace {
20
public:
21
    ICmdExecutor() : IFace(IFACE_CMD_EXECUTOR) {}
22
 
23
    /** Register command with ICommand interface */
24
    virtual void registerCommand(ICommand *icmd) =0;
25
    virtual void unregisterCommand(ICommand *icmd) =0;
26
 
27
    /** Execute string as a command */
28
    virtual void exec(const char *line, AttributeType *res, bool silent) =0;
29
 
30
    /** Get list of supported comands starting with substring 'substr' */
31
    virtual void commands(const char *substr, AttributeType *res) =0;
32
};
33
 
34
}  // namespace debugger
35
 
36
#endif  // __DEBUGGER_ICMDEXEC_H__

powered by: WebSVN 2.1.0

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