Public Types | Public Member Functions | Static Public Member Functions

Glib::Variant< Glib::ustring > Class Template Reference
[Variant Datatype]

Specialization of Glib::Variant containing a Glib::ustring. More...

#include <glibmm/variant.h>

Inheritance diagram for Glib::Variant< Glib::ustring >:
Inheritance graph
[legend]

List of all members.

Public Types

typedef char* CType

Public Member Functions

 Variant ()
 Default constructor.
 Variant (GVariant* castitem, bool take_a_reference=false)
 GVariant constructor.
Glib::ustring get () const
 Gets the contents of the Glib::Variant<Glib::ustring>.

Static Public Member Functions

static const Glib::VariantTypevariant_type ()
 Gets the Glib::VariantType.
static Variant< Glib::ustringcreate (const Glib::ustring& data)
 Creates a new Glib::Variant<Glib::ustring>.

Detailed Description

template <>
class Glib::Variant< Glib::ustring >

Specialization of Glib::Variant containing a Glib::ustring.

Since glibmm 2.28:

Member Typedef Documentation

typedef char* Glib::Variant< Glib::ustring >::CType

Reimplemented from Glib::VariantStringBase.


Constructor & Destructor Documentation

Glib::Variant< Glib::ustring >::Variant (  ) [inline]

Default constructor.

Glib::Variant< Glib::ustring >::Variant ( GVariant< Glib::ustring >*  castitem,
bool  take_a_reference = false 
) [inline, explicit]

GVariant constructor.

Parameters:
castitemThe GVariant to wrap.
take_a_referenceWhether to take an extra reference of the GVariant or not (not taking one could destroy the GVariant with the wrapper).

Member Function Documentation

static Variant<Glib::ustring> Glib::Variant< Glib::ustring >::create ( const Glib::ustring data ) [static]

Creates a new Glib::Variant<Glib::ustring>.

Parameters:
dataThe value of the new Glib::Variant<Glib::ustring>.
Returns:
The new Glib::Variant<Glib::ustring>.
Since glibmm 2.28:

Gets the contents of the Glib::Variant<Glib::ustring>.

Returns:
The contents of the Glib::Variant<Glib::ustring>.
Since glibmm 2.28:
static const Glib::VariantType& Glib::Variant< Glib::ustring >::variant_type (  ) [static]