1 //===-- MICmnMIValue.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 //===----------------------------------------------------------------------===//
12 #include "MICmnBase.h"
15 //============================================================================
16 // Details: MI common code MI Result class. Part of the CMICmnMIValueRecord
18 // The syntax is as follows:
19 // result-record ==> [ token ] "^" result-class ( "," result )* nl
20 // token = any sequence of digits
23 // result-class ==> "done" | "running" | "connected" | "error" | "exit"
24 // result ==> variable "=" value
25 // value ==> const | tuple | list
26 // const ==> c-string (7 bit iso c string content)
27 // tuple ==> "{}" | "{" result ( "," result )* "}"
28 // list ==> "[]" | "[" value ( "," value )* "]" | "[" result ( ","
30 // More information see:
31 // http://ftp.gnu.org/old-gnu/Manuals/gdb-5.1.1/html_chapter/gdb_22.html
33 class CMICmnMIValue : public CMICmnBase {
36 /* ctor */ CMICmnMIValue();
38 const CMIUtilString &GetString() const;
43 /* dtor */ ~CMICmnMIValue() override;
47 CMIUtilString m_strValue;
48 bool m_bJustConstructed; // True = *this just constructed with no value, false
49 // = *this has had value added to it