diff options
Diffstat (limited to 'tools/lldb-mi/MICmdArgValNumber.h')
| -rw-r--r-- | tools/lldb-mi/MICmdArgValNumber.h | 72 |
1 files changed, 36 insertions, 36 deletions
diff --git a/tools/lldb-mi/MICmdArgValNumber.h b/tools/lldb-mi/MICmdArgValNumber.h index 219b040a257d4..1a782e1af3884 100644 --- a/tools/lldb-mi/MICmdArgValNumber.h +++ b/tools/lldb-mi/MICmdArgValNumber.h @@ -8,15 +8,15 @@ //===----------------------------------------------------------------------===// //++ -// File: MICmdArgValNumber.h +// File: MICmdArgValNumber.h // -// Overview: CMICmdArgValNumber interface. +// Overview: CMICmdArgValNumber 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 @@ -28,38 +28,38 @@ class CMICmdArgContext; //++ ============================================================================ -// Details: MI common code class. Command argument class. Arguments object -// needing specialization derived from the CMICmdArgValBase class. -// An argument knows what type of argument it is and how it is to -// interpret the options (context) string to find and validate a matching -// argument and so extract a value from it . -// Based on the Interpreter pattern. -// Gotchas: None. -// Authors: Illya Rudkin 14/04/2014. -// Changes: None. +// Details: MI common code class. Command argument class. Arguments object +// needing specialization derived from the CMICmdArgValBase class. +// An argument knows what type of argument it is and how it is to +// interpret the options (context) string to find and validate a matching +// argument and so extract a value from it . +// Based on the Interpreter pattern. +// Gotchas: None. +// Authors: Illya Rudkin 14/04/2014. +// Changes: None. //-- -class CMICmdArgValNumber : public CMICmdArgValBaseTemplate< MIint64 > +class CMICmdArgValNumber : public CMICmdArgValBaseTemplate<MIint64> { -// Methods: -public: - /* ctor */ CMICmdArgValNumber( void ); - /* ctor */ CMICmdArgValNumber( const CMIUtilString & vrArgName, const bool vbMandatory, const bool vbHandleByCmd ); - // - bool IsArgNumber( const CMIUtilString & vrTxt ) const; - -// Overridden: -public: - // From CMICmdArgValBase - /* dtor */ virtual ~CMICmdArgValNumber( void ); - // From CMICmdArgSet::IArg - virtual bool Validate( CMICmdArgContext & vwArgContext ); + // Methods: + public: + /* ctor */ CMICmdArgValNumber(void); + /* ctor */ CMICmdArgValNumber(const CMIUtilString &vrArgName, const bool vbMandatory, const bool vbHandleByCmd); + // + bool IsArgNumber(const CMIUtilString &vrTxt) const; -// Methods: -private: - bool ExtractNumber( const CMIUtilString & vrTxt ); - MIint64 GetNumber( void ) const; + // Overridden: + public: + // From CMICmdArgValBase + /* dtor */ virtual ~CMICmdArgValNumber(void); + // From CMICmdArgSet::IArg + virtual bool Validate(CMICmdArgContext &vwArgContext); -// Attributes: -private: - MIint64 m_nNumber; + // Methods: + private: + bool ExtractNumber(const CMIUtilString &vrTxt); + MIint64 GetNumber(void) const; + + // Attributes: + private: + MIint64 m_nNumber; }; |
