1 //===-- MICmnMIValue.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 "MICmnBase.h"
16 //============================================================================
17 // Details: MI common code MI Result class. Part of the CMICmnMIValueRecord
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 class CMICmnMIValue : public CMICmnBase {
37 /* ctor */ CMICmnMIValue();
39 const CMIUtilString &GetString() const;
44 /* dtor */ ~CMICmnMIValue() override;
48 CMIUtilString m_strValue;
49 bool m_bJustConstructed; // True = *this just constructed with no value, false
50 // = *this has had value added to it