1 //===-- MICmdArgContext.h ---------------------------------------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
11 // File: MICmdArgContext.h
13 // Overview: CMICmdArgContext interface.
15 // Environment: Compilers: Visual C++ 12.
16 // gcc (Ubuntu/Linaro 4.8.1-10ubuntu9) 4.8.1
17 // Libraries: See MIReadmetxt.
25 #include "MIUtilString.h"
27 //++ ============================================================================
28 // Details: MI common code class. Command arguments and options string. Holds
29 // the context string.
30 // Based on the Interpreter pattern.
32 // Authors: Illya Rudkin 14/04/2014.
35 class CMICmdArgContext
39 /* ctor */ CMICmdArgContext( void );
40 /* ctor */ CMICmdArgContext( const CMIUtilString & vrCmdLineArgsRaw );
42 const CMIUtilString & GetArgsLeftToParse( void ) const;
43 MIuint GetNumberArgsPresent( void ) const;
44 CMIUtilString::VecString_t GetArgs( void ) const;
45 bool IsEmpty( void ) const;
46 bool RemoveArg( const CMIUtilString & vArg );
47 bool RemoveArgAtPos( const CMIUtilString & vArg, const MIuint nArgIndex );
49 CMICmdArgContext & operator= ( const CMICmdArgContext & vOther );
54 /* dtor */ virtual ~CMICmdArgContext( void );
58 CMIUtilString m_strCmdArgsAndOptions;
59 const MIchar m_constCharSpace;
60 const CMIUtilString m_constStrSpace;