]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - tools/lldb-mi/MICmnMIValue.cpp
Vendor import of lldb trunk r290819:
[FreeBSD/FreeBSD.git] / tools / lldb-mi / MICmnMIValue.cpp
1 //===-- MICmnMIValue.cpp ----------------------------------------*- C++ -*-===//
2 //
3 //                     The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9
10 // In-house headers:
11 #include "MICmnMIValue.h"
12 #include "MICmnResources.h"
13
14 //++
15 //------------------------------------------------------------------------------------
16 // Details: CMICmnMIValue constructor.
17 // Type:    Method.
18 // Args:    None.
19 // Return:  None.
20 // Throws:  None.
21 //--
22 CMICmnMIValue::CMICmnMIValue()
23     : m_strValue(MIRSRC(IDS_WORD_INVALIDBRKTS)), m_bJustConstructed(true) {}
24
25 //++
26 //------------------------------------------------------------------------------------
27 // Details: CMICmnMIValue destructor.
28 // Type:    Overrideable.
29 // Args:    None.
30 // Return:  None.
31 // Throws:  None.
32 //--
33 CMICmnMIValue::~CMICmnMIValue() {}
34
35 //++
36 //------------------------------------------------------------------------------------
37 // Details: Return the MI value as a string. The string is a direct result of
38 //          work done on *this value so if not enough data is added then it is
39 //          possible to return a malformed value. If nothing has been set or
40 //          added to *this MI value object then text "<Invalid>" will be
41 //          returned.
42 // Type:    Method.
43 // Args:    None.
44 // Return:  CMIUtilString & - MI output text.
45 // Throws:  None.
46 //--
47 const CMIUtilString &CMICmnMIValue::GetString() const { return m_strValue; }