1 //===-- MICmnMIValueList.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 "MICmnMIValue.h"
13 #include "MICmnMIValueResult.h"
16 //============================================================================
17 // Details: MI common code MI Result class. Part of the CMICmnMIValueListRecord
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 CMICmnMIValueList : public CMICmnMIValue {
37 /* ctor */ CMICmnMIValueList(const bool vbValueTypeList);
38 /* ctor */ CMICmnMIValueList(const CMICmnMIValueResult &vResult);
39 /* ctor */ CMICmnMIValueList(const CMICmnMIValue &vValue);
41 void Add(const CMICmnMIValueResult &vResult);
42 void Add(const CMICmnMIValue &vValue);
43 CMIUtilString ExtractContentNoBrackets() const;
48 /* dtor */ ~CMICmnMIValueList() override;
53 void BuildList(const CMICmnMIValueResult &vResult);
54 void BuildList(const CMICmnMIValue &vResult);