diff options
Diffstat (limited to 'tools/lldb-mi/MICmdMgr.h')
-rw-r--r-- | tools/lldb-mi/MICmdMgr.h | 90 |
1 files changed, 44 insertions, 46 deletions
diff --git a/tools/lldb-mi/MICmdMgr.h b/tools/lldb-mi/MICmdMgr.h index 2b6a99248b16..f403e1778c96 100644 --- a/tools/lldb-mi/MICmdMgr.h +++ b/tools/lldb-mi/MICmdMgr.h @@ -8,15 +8,15 @@ //===----------------------------------------------------------------------===// //++ -// File: MICmdMgr.h +// File: MICmdMgr.h // -// Overview: CMICmdMgr interface. +// Overview: CMICmdMgr interface. // -// Environment: Compilers: Visual C++ 12. -// gcc (Ubuntu/Linaro 4.8.1-10ubuntu9) 4.8.1 -// Libraries: See MIReadmetxt. +// Environment: Compilers: Visual C++ 12. +// gcc (Ubuntu/Linaro 4.8.1-10ubuntu9) 4.8.1 +// Libraries: See MIReadmetxt. // -// Copyright: None. +// Copyright: None. //-- #pragma once @@ -33,51 +33,49 @@ // Declarations: class CMICmdInterpreter; class CMICmdFactory; -class CMICmdInvoker; +class CMICmdInvoker; class CMICmdBase; //++ ============================================================================ -// Details: MI command manager. Oversees command operations, controls command -// production and the running of commands. -// Command Invoker, Command Factory and Command Monitor while independant -// units are overseen/managed by *this manager. -// A singleton class. -// Gotchas: None. -// Authors: Illya Rudkin 19/02/2014. -// Changes: None. +// Details: MI command manager. Oversees command operations, controls command +// production and the running of commands. +// Command Invoker, Command Factory and Command Monitor while independant +// units are overseen/managed by *this manager. +// A singleton class. +// Gotchas: None. +// Authors: Illya Rudkin 19/02/2014. +// Changes: None. //-- -class CMICmdMgr -: public CMICmnBase -, public MI::ISingleton< CMICmdMgr > +class CMICmdMgr : public CMICmnBase, public MI::ISingleton<CMICmdMgr> { - friend class MI::ISingleton< CMICmdMgr >; + friend class MI::ISingleton<CMICmdMgr>; -// Methods: -public: - bool Initialize( void ); - bool Shutdown( void ); - - bool CmdInterpret( const CMIUtilString & vTextLine, bool & vwbYesValid, bool & vwbCmdNotInCmdFactor, SMICmdData & rwCmdData ); - bool CmdExecute( const SMICmdData & vCmdData ); - bool CmdDelete( SMICmdData vCmdData ); - bool CmdRegisterForDeleteNotification( CMICmdMgrSetCmdDeleteCallback::ICallback & vObject ); - bool CmdUnregisterForDeleteNotification( CMICmdMgrSetCmdDeleteCallback::ICallback & vObject ); + // Methods: + public: + bool Initialize(void); + bool Shutdown(void); -// Methods: -private: - /* ctor */ CMICmdMgr( void ); - /* ctor */ CMICmdMgr( const CMICmdMgr & ); - void operator=( const CMICmdMgr & ); - -// Overridden: -public: - // From CMICmnBase - /* dtor */ virtual ~CMICmdMgr( void ); + bool CmdInterpret(const CMIUtilString &vTextLine, bool &vwbYesValid, bool &vwbCmdNotInCmdFactor, SMICmdData &rwCmdData); + bool CmdExecute(const SMICmdData &vCmdData); + bool CmdDelete(SMICmdData vCmdData); + bool CmdRegisterForDeleteNotification(CMICmdMgrSetCmdDeleteCallback::ICallback &vObject); + bool CmdUnregisterForDeleteNotification(CMICmdMgrSetCmdDeleteCallback::ICallback &vObject); -// Attributes: -private: - CMICmdInterpreter & m_interpretor; - CMICmdFactory & m_factory; - CMICmdInvoker & m_invoker; - CMICmdMgrSetCmdDeleteCallback::CSetClients m_setCmdDeleteCallback; -};
\ No newline at end of file + // Methods: + private: + /* ctor */ CMICmdMgr(void); + /* ctor */ CMICmdMgr(const CMICmdMgr &); + void operator=(const CMICmdMgr &); + + // Overridden: + public: + // From CMICmnBase + /* dtor */ virtual ~CMICmdMgr(void); + + // Attributes: + private: + CMICmdInterpreter &m_interpretor; + CMICmdFactory &m_factory; + CMICmdInvoker &m_invoker; + CMICmdMgrSetCmdDeleteCallback::CSetClients m_setCmdDeleteCallback; +}; |