aboutsummaryrefslogtreecommitdiff
path: root/tools/lldb-mi/MICmnMIValue.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tools/lldb-mi/MICmnMIValue.cpp')
-rw-r--r--tools/lldb-mi/MICmnMIValue.cpp64
1 files changed, 64 insertions, 0 deletions
diff --git a/tools/lldb-mi/MICmnMIValue.cpp b/tools/lldb-mi/MICmnMIValue.cpp
new file mode 100644
index 000000000000..f9fb08bf642d
--- /dev/null
+++ b/tools/lldb-mi/MICmnMIValue.cpp
@@ -0,0 +1,64 @@
+//===-- Platform.cpp --------------------------------------------*- C++ -*-===//
+//
+// The LLVM Compiler Infrastructure
+//
+// This file is distributed under the University of Illinois Open Source
+// License. See LICENSE.TXT for details.
+//
+//===----------------------------------------------------------------------===//
+
+//++
+// File: MICmnMIValue.h
+//
+// Overview: CMICmnMIValue implementation.
+//
+// Environment: Compilers: Visual C++ 12.
+// gcc (Ubuntu/Linaro 4.8.1-10ubuntu9) 4.8.1
+// Libraries: See MIReadmetxt.
+//
+// Copyright: None.
+//--
+
+// In-house headers:
+#include "MICmnMIValue.h"
+#include "MICmnResources.h"
+
+//++ ------------------------------------------------------------------------------------
+// Details: CMICmnMIValue constructor.
+// Type: Method.
+// Args: None.
+// Return: None.
+// Throws: None.
+//--
+CMICmnMIValue::CMICmnMIValue( void )
+: m_strValue( MIRSRC( IDS_WORD_INVALIDBRKTS ) )
+, m_bJustConstructed( true )
+{
+}
+
+//++ ------------------------------------------------------------------------------------
+// Details: CMICmnMIValue destructor.
+// Type: Overrideable.
+// Args: None.
+// Return: None.
+// Throws: None.
+//--
+CMICmnMIValue::~CMICmnMIValue( void )
+{
+}
+
+//++ ------------------------------------------------------------------------------------
+// Details: Return the MI value as a string. The string is a direct result of
+// work done on *this value so if not enough data is added then it is
+// possible to return a malformed value. If nothing has been set or
+// added to *this MI value object then text "<Invalid>" will be returned.
+// Type: Method.
+// Args: None.
+// Return: CMIUtilString & - MI output text.
+// Throws: None.
+//--
+const CMIUtilString & CMICmnMIValue::GetString( void ) const
+{
+ return m_strValue;
+}
+