1 //===-- MICmnMIValueConst.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 "MICmnMIValue.h"
16 //============================================================================
17 // Details: MI common code MI Result class. Part of the CMICmnMIValueConstRecord
19 // The syntax is as follows:
20 // result-record ==> [ token ] "^" result-class ( "," result )* nl
21 // token = any sequence of digits
24 // result-class ==> "done" | "running" | "connected" | "error" | "exit"
25 // result ==> variable "=" value
26 // value ==> const | tuple | list
27 // const ==> c-string (7 bit iso c string content)
28 // tuple ==> "{}" | "{" result ( "," result )* "}"
29 // list ==> "[]" | "[" value ( "," value )* "]" | "[" result ( ","
31 // More information see:
32 // http://ftp.gnu.org/old-gnu/Manuals/gdb-5.1.1/html_chapter/gdb_22.html
34 // The text formed in *this Result class is stripped of any '\n'
37 class CMICmnMIValueConst : public CMICmnMIValue {
40 /* ctor */ CMICmnMIValueConst(const CMIUtilString &vString);
41 /* ctor */ CMICmnMIValueConst(const CMIUtilString &vString,
42 const bool vbNoQuotes);
47 /* dtor */ ~CMICmnMIValueConst() override;
55 static const CMIUtilString ms_constStrDblQuote;
57 CMIUtilString m_strPartConst;
58 bool m_bNoQuotes; // True = return string not surrounded with quotes, false =