1 //===-- MICmdData.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 //===----------------------------------------------------------------------===//
13 #include "MICmnResources.h"
16 //============================================================================
17 // Details: MI command metadata. Holds the command's name, MI number and options
18 // as found on stdin. Holds the command's MI output (written to
23 : id(0), bCmdValid(false), bCmdExecutedSuccessfully(false),
24 bMIOldStyle(false), bHasResultRecordExtra(false) {}
26 MIuint id; // A command's unique ID i.e. GUID
27 CMIUtilString strMiCmdToken; // The command's MI token (a number)
28 CMIUtilString strMiCmd; // The command's name
29 CMIUtilString strMiCmdOption; // The command's arguments or options
30 CMIUtilString strMiCmdAll; // The text as received from the client
32 strMiCmdResultRecord; // Each command forms 1 response to its input
33 CMIUtilString strMiCmdResultRecordExtra; // Hack command produce more response
34 // text to help the client because of
36 bool bCmdValid; // True = Valid MI format command, false = invalid
37 bool bCmdExecutedSuccessfully; // True = Command finished successfully, false
38 // = Did not start/did not complete
39 CMIUtilString strErrorDescription; // Command failed this is why
40 bool bMIOldStyle; // True = format "3thread", false = format "3-thread"
41 bool bHasResultRecordExtra; // True = Yes command produced additional MI
42 // output to its 1 line response, false = no extra
47 strMiCmdToken.clear();
48 strMiCmd = MIRSRC(IDS_CMD_ERR_CMD_RUN_BUT_NO_ACTION);
49 strMiCmdOption.clear();
51 strMiCmdResultRecord.clear();
52 strMiCmdResultRecordExtra.clear();
54 bCmdExecutedSuccessfully = false;
55 strErrorDescription.clear();
57 bHasResultRecordExtra = false;