1 //===-- MICmnMIValueList.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: MICmnMIValueList.h
13 // Overview: CMICmnMIValueList 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"
26 #include "MICmnMIValueResult.h"
28 //++ ============================================================================
29 // Details: MI common code MI Result class. Part of the CMICmnMIValueListRecord
31 // The syntax is as follows:
32 // result-record ==> [ token ] "^" result-class ( "," result )* nl
33 // token = any sequence of digits
36 // result-class ==> "done" | "running" | "connected" | "error" | "exit"
37 // result ==> variable "=" value
38 // value ==> const | tuple | list
39 // const ==> c-string (7 bit iso c string content)
40 // tuple ==> "{}" | "{" result ( "," result )* "}"
41 // list ==> "[]" | "[" value ( "," value )* "]" | "[" result ( "," result )* "]"
42 // More information see:
43 // http://ftp.gnu.org/old-gnu/Manuals/gdb-5.1.1/html_chapter/gdb_22.html
45 // Authors: Illya Rudkin 24/02/2014.
48 class CMICmnMIValueList : public CMICmnMIValue
52 /* ctor */ CMICmnMIValueList(const bool vbValueTypeList);
53 /* ctor */ CMICmnMIValueList(const CMICmnMIValueResult &vResult);
54 /* ctor */ CMICmnMIValueList(const CMICmnMIValue &vValue);
56 bool Add(const CMICmnMIValueResult &vResult);
57 bool Add(const CMICmnMIValue &vValue);
58 CMIUtilString ExtractContentNoBrackets(void) const;
63 /* dtor */ virtual ~CMICmnMIValueList(void);
68 bool BuildList(const CMICmnMIValueResult &vResult);
69 bool BuildList(const CMICmnMIValue &vResult);