50 DebugIOInterface& operator=(
const DebugIOInterface&);
106 virtual int Read(
char *buf,
int maxchar)=0;
150 virtual void Execute(
class Debug& dbg,
const char *cmd,
bool structuredCmd,
151 unsigned argn,
const char *
const * argv)=0;
175 #define DEBUG_DECLARE_IO_INTERFACE(type)
186 #define DEBUG_IMPLEMENT_IO_INTERFACE(io_id,descr,type)
190 #define DEBUG_DECLARE_IO_INTERFACE(type) \
192 static bool __RegisterClassFactory; \
193 static DebugIOInterface *__ClassFactory(void) { return new type; }
195 #define DEBUG_IMPLEMENT_IO_INTERFACE(io_id,descr,type) \
196 static bool type::__RegisterClassFactory=Debug::AddIOFactory(#io_id,descr,type::__ClassFactory);
Debug module main class (singleton).
virtual ~DebugIOInterface()
I/O class destructor.
virtual void Write(StringType type, const char *src, const char *str)=0
Write out some characters differentiated by the log string type.
StringType
List of possible log string types.
@ Other
some other message
@ CmdReply
Regular command reply.
@ StructuredCmdReply
Structured command reply, see Structured command reply.
virtual void EmergencyFlush(void)=0
Emergency shutdown function.
virtual int Read(char *buf, int maxchar)=0
Retrieves up to the given number of characters from a command input source.
virtual void Delete(void)=0
Destroys the current I/O class instance.
virtual void Execute(class Debug &dbg, const char *cmd, bool structuredCmd, unsigned argn, const char *const *argv)=0
I/O class specific command.