URL
https://opencores.org/ocsvn/riscv_vhdl/riscv_vhdl/trunk
Subversion Repositories riscv_vhdl
[/] [riscv_vhdl/] [trunk/] [debugger/] [src/] [common/] [iattr.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 Core Attribute interface declaration. */ #ifndef __DEBUGGER_IATTRIBUTE_H__ #define __DEBUGGER_IATTRIBUTE_H__ #include "iface.h" namespace debugger { static const char *const IFACE_ATTRIBUTE = "IAttribute"; class IAttribute : public IFace { public: IAttribute() : IFace(IFACE_ATTRIBUTE), attr_name_ (NULL) {} virtual void setAttrName(const char *name) { attr_name_ = name; } virtual const char *getAttrName() { return attr_name_; } virtual void setAttrDescription(const char *descr) { attr_descr_ = descr; } virtual const char *getAttrDescription() { return attr_descr_; } protected: const char *attr_name_; const char *attr_descr_; }; } // namespace debugger #endif // __DEBUGGER_IATTRIBUTE_H__
Go to most recent revision | Compare with Previous | Blame | View Log