1 //===-- MICmdCmdEnviro.h ----------------------------------------*- C++ -*-===//
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
9 // Overview: CMICmdCmdEnvironmentCd interface.
11 // To implement new MI commands derive a new command class from the
13 // class. To enable the new command for interpretation add the new
15 // to the command factory. The files of relevance are:
19 // For an introduction to adding a new command see
20 // CMICmdCmdSupportInfoMiCmdQuery
21 // command class as an example.
26 #include "MICmdBase.h"
27 #include "MICmnMIValueList.h"
28 #include "MICmnMIValueTuple.h"
31 //============================================================================
32 // Details: MI command class. MI commands derived from the command base class.
33 // *this class implements MI command "environment-cd".
35 class CMICmdCmdEnvironmentCd : public CMICmdBase {
38 // Required by the CMICmdFactory when registering *this command
39 static CMICmdBase *CreateSelf();
43 /* ctor */ CMICmdCmdEnvironmentCd();
47 // From CMICmdInvoker::ICmd
48 bool Execute() override;
49 bool Acknowledge() override;
50 bool ParseArgs() override;
52 /* dtor */ ~CMICmdCmdEnvironmentCd() override;
56 const CMIUtilString m_constStrArgNamePathDir;