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 //===----------------------------------------------------------------------===//
11 // File: MICmnMIValueConst.h
13 // Overview: CMICmnMIValueConst interface.
15 // Environment: Compilers: Visual C++ 12.
16 // gcc (Ubuntu/Linaro 4.8.1-10ubuntu9) 4.8.1
17 // Libraries: See MIReadmetxt.
25 #include "MICmnMIValue.h"
27 //++ ============================================================================
28 // Details: MI common code MI Result class. Part of the CMICmnMIValueConstRecord
30 // The syntax is as follows:
31 // result-record ==> [ token ] "^" result-class ( "," result )* nl
32 // token = any sequence of digits
35 // result-class ==> "done" | "running" | "connected" | "error" | "exit"
36 // result ==> variable "=" value
37 // value ==> const | tuple | list
38 // const ==> c-string (7 bit iso c string content)
39 // tuple ==> "{}" | "{" result ( "," result )* "}"
40 // list ==> "[]" | "[" value ( "," value )* "]" | "[" result ( "," result )* "]"
41 // More information see:
42 // http://ftp.gnu.org/old-gnu/Manuals/gdb-5.1.1/html_chapter/gdb_22.html
44 // The text formed in *this Result class is stripped of any '\n' characters.
47 // Authors: Illya Rudkin 24/02/2014.
50 class CMICmnMIValueConst : public CMICmnMIValue
54 /* ctor */ CMICmnMIValueConst(const CMIUtilString &vString);
55 /* ctor */ CMICmnMIValueConst(const CMIUtilString &vString, const bool vbNoQuotes);
60 /* dtor */ virtual ~CMICmnMIValueConst(void);
64 bool BuildConst(void);
68 static const CMIUtilString ms_constStrDblQuote;
70 CMIUtilString m_strPartConst;
71 bool m_bNoQuotes; // True = return string not surrounded with quotes, false = use quotes