diff options
Diffstat (limited to 'lldb/tools/lldb-mi/MIDriverBase.h')
-rw-r--r-- | lldb/tools/lldb-mi/MIDriverBase.h | 62 |
1 files changed, 32 insertions, 30 deletions
diff --git a/lldb/tools/lldb-mi/MIDriverBase.h b/lldb/tools/lldb-mi/MIDriverBase.h index 9be407e..8ac49ec 100644 --- a/lldb/tools/lldb-mi/MIDriverBase.h +++ b/lldb/tools/lldb-mi/MIDriverBase.h @@ -10,19 +10,19 @@ #pragma once // Third party headers: -#include "lldb/API/SBDebugger.h" #include "lldb/API/SBBroadcaster.h" +#include "lldb/API/SBDebugger.h" // In-house headers: #include "MIUtilString.h" // Declarations: -namespace lldb -{ +namespace lldb { class SBBroadcaster; } -//++ ============================================================================ +//++ +//============================================================================ // Details: MI driver base implementation class. This class has been created so // not have to edit the lldb::SBBroadcaster class code. Functionality // and attributes need to be common to the LLDB Driver class and the @@ -32,35 +32,37 @@ class SBBroadcaster; // Each driver instance (the CMIDriver, LLDB::Driver) has its own // LLDB::SBDebugger object. //-- -class CMIDriverBase -{ - // Methods: - public: - /* ctor */ CMIDriverBase(); +class CMIDriverBase { + // Methods: +public: + /* ctor */ CMIDriverBase(); - CMIDriverBase *GetDriverToFallThruTo() const; - CMIDriverBase *GetDriversParent() const; + CMIDriverBase *GetDriverToFallThruTo() const; + CMIDriverBase *GetDriversParent() const; - // Overrideable: - public: - /* dtor */ virtual ~CMIDriverBase(); + // Overrideable: +public: + /* dtor */ virtual ~CMIDriverBase(); - virtual bool DoFallThruToAnotherDriver(const CMIUtilString &vCmd, CMIUtilString &vwErrMsg); - virtual bool SetDriverToFallThruTo(const CMIDriverBase &vrOtherDriver); - virtual bool SetDriverParent(const CMIDriverBase &vrOtherDriver); - virtual const CMIUtilString &GetDriverName() const = 0; - virtual const CMIUtilString &GetDriverId() const = 0; - virtual void SetExitApplicationFlag(const bool vbForceExit); + virtual bool DoFallThruToAnotherDriver(const CMIUtilString &vCmd, + CMIUtilString &vwErrMsg); + virtual bool SetDriverToFallThruTo(const CMIDriverBase &vrOtherDriver); + virtual bool SetDriverParent(const CMIDriverBase &vrOtherDriver); + virtual const CMIUtilString &GetDriverName() const = 0; + virtual const CMIUtilString &GetDriverId() const = 0; + virtual void SetExitApplicationFlag(const bool vbForceExit); - // MI provide information for the pass through (child) assigned driver - virtual FILE *GetStdin() const; - virtual FILE *GetStdout() const; - virtual FILE *GetStderr() const; + // MI provide information for the pass through (child) assigned driver + virtual FILE *GetStdin() const; + virtual FILE *GetStdout() const; + virtual FILE *GetStderr() const; - // Attributes: - protected: - CMIDriverBase *m_pDriverFallThru; // Child driver to use should *this driver not be able to handle client input - CMIDriverBase *m_pDriverParent; // The parent driver who passes work to *this driver to do work - CMIUtilString m_strDriverId; - bool m_bExitApp; // True = Yes, exit application, false = continue execution + // Attributes: +protected: + CMIDriverBase *m_pDriverFallThru; // Child driver to use should *this driver + // not be able to handle client input + CMIDriverBase *m_pDriverParent; // The parent driver who passes work to *this + // driver to do work + CMIUtilString m_strDriverId; + bool m_bExitApp; // True = Yes, exit application, false = continue execution }; |