Nemiver  0.3
Public Types | Public Member Functions | Friends | List of all members
nemiver::GDBMIValue Class Reference

#include <nmv-gdbmi-parser.h>

Inheritance diagram for nemiver::GDBMIValue:
nemiver::common::Object

Public Types

enum  Type { EMPTY_TYPE =0, STRING_TYPE, LIST_TYPE, TUPLE_TYPE }
 

Public Member Functions

 GDBMIValue ()
 
 GDBMIValue (const UString &a_str)
 
 GDBMIValue (const GDBMIListSafePtr &a_list)
 
 GDBMIValue (const GDBMITupleSafePtr &a_tuple)
 
Type content_type () const
 
const UStringget_string_content ()
 
const GDBMIListSafePtr get_list_content () const
 
GDBMIListSafePtr get_list_content ()
 
const GDBMITupleSafePtr get_tuple_content () const
 
GDBMITupleSafePtr get_tuple_content ()
 
const ContentType & content () const
 
void content (const ContentType &a_in)
 
- Public Member Functions inherited from nemiver::common::Object
 Object ()
 
 Object (Object const &)
 
Objectoperator= (Object const &)
 
virtual ~Object ()
 
void ref ()
 
void unref ()
 
void enable_refcount (bool a_enabled=true)
 
bool is_refcount_enabled () const
 
long get_refcount () const
 
void attach_object (const UString &a_key, const Object *a_object)
 
bool get_attached_object (const UString &a_key, const Object *&a_object)
 

Friends

class GDBMIResult
 

Additional Inherited Members

- Protected Attributes inherited from nemiver::common::Object
SafePtr< ObjectPrivm_priv
 

Detailed Description

A GDB/MI Value. the syntax of a GDB/MI value is: VALUE ==> CONST | TUPLE | LIST In our case, CONST is a UString class, TUPLE is a GDBMITuple class and LIST is a GDBMIList class. please, read the GDB/MI output syntax documentation for more.

Member Enumeration Documentation

◆ Type

Enumerator
EMPTY_TYPE 
STRING_TYPE 
LIST_TYPE 
TUPLE_TYPE 

Constructor & Destructor Documentation

◆ GDBMIValue() [1/4]

nemiver::GDBMIValue::GDBMIValue ( )
inline

◆ GDBMIValue() [2/4]

nemiver::GDBMIValue::GDBMIValue ( const UString a_str)
inline

◆ GDBMIValue() [3/4]

nemiver::GDBMIValue::GDBMIValue ( const GDBMIListSafePtr a_list)
inline

◆ GDBMIValue() [4/4]

nemiver::GDBMIValue::GDBMIValue ( const GDBMITupleSafePtr a_tuple)
inline

Member Function Documentation

◆ content() [1/2]

const ContentType& nemiver::GDBMIValue::content ( ) const
inline

◆ content() [2/2]

void nemiver::GDBMIValue::content ( const ContentType &  a_in)
inline

◆ content_type()

Type nemiver::GDBMIValue::content_type ( ) const
inline

◆ get_list_content() [1/2]

GDBMIListSafePtr nemiver::GDBMIValue::get_list_content ( )
inline

References THROW_IF_FAIL.

◆ get_list_content() [2/2]

const GDBMIListSafePtr nemiver::GDBMIValue::get_list_content ( ) const
inline

References THROW_IF_FAIL.

◆ get_string_content()

const UString& nemiver::GDBMIValue::get_string_content ( )
inline

References THROW_IF_FAIL.

◆ get_tuple_content() [1/2]

GDBMITupleSafePtr nemiver::GDBMIValue::get_tuple_content ( )
inline

References THROW_IF_FAIL.

◆ get_tuple_content() [2/2]

const GDBMITupleSafePtr nemiver::GDBMIValue::get_tuple_content ( ) const
inline

References THROW_IF_FAIL.

Friends And Related Function Documentation

◆ GDBMIResult

friend class GDBMIResult
friend

The documentation for this class was generated from the following file: