1 //===-- MICmdCmdEnviro.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: MICmdCmdEnviro.h
13 // Overview: CMICmdCmdEnvironmentCd interface.
15 // To implement new MI commands derive a new command class from the command base
16 // class. To enable the new command for interpretation add the new command class
17 // to the command factory. The files of relevance are:
21 // For an introduction to adding a new command see CMICmdCmdSupportInfoMiCmdQuery
22 // command class as an example.
24 // Environment: Compilers: Visual C++ 12.
25 // gcc (Ubuntu/Linaro 4.8.1-10ubuntu9) 4.8.1
26 // Libraries: See MIReadmetxt.
34 #include "MICmdBase.h"
35 #include "MICmnMIValueTuple.h"
36 #include "MICmnMIValueList.h"
38 //++ ============================================================================
39 // Details: MI command class. MI commands derived from the command base class.
40 // *this class implements MI command "environment-cd".
42 // Authors: Illya Rudkin 03/03/2014.
45 class CMICmdCmdEnvironmentCd : public CMICmdBase
49 // Required by the CMICmdFactory when registering *this command
50 static CMICmdBase *CreateSelf(void);
54 /* ctor */ CMICmdCmdEnvironmentCd(void);
58 // From CMICmdInvoker::ICmd
59 virtual bool Execute(void);
60 virtual bool Acknowledge(void);
61 virtual bool ParseArgs(void);
63 /* dtor */ virtual ~CMICmdCmdEnvironmentCd(void);
67 const CMIUtilString m_constStrArgNamePathDir;