3 #ifndef _GCONFMM_VALUE_H
4 #define _GCONFMM_VALUE_H
31 #include <glibmm/ustring.h>
63 #ifndef DOXYGEN_SHOULD_SKIP_THIS
68 class Value<Gnome::
Conf::ValueType> :
public Glib::Value_Enum<Gnome::Conf::ValueType>
71 static GType value_type() G_GNUC_CONST;
97 #ifndef DOXYGEN_SHOULD_SKIP_THIS
102 class Value<Gnome::
Conf::UnsetFlags> :
public Glib::Value_Enum<Gnome::Conf::UnsetFlags>
105 static GType value_type() G_GNUC_CONST;
144 #ifndef DOXYGEN_SHOULD_SKIP_THIS
145 typedef Value CppObjectType;
187 void set(gdouble val);
207 void set(
const Glib::ustring& val);
std::pair< ValueType, ValueType > ValueTypePair
Definition: value.h:120
const GConfValue * gobj() const
Definition: value.h:159
SListHandle_ValueString get_string_list() const
Retrieves the list of strings from the Value.
Definition: callback.h:33
struct _GConfValue GConfValue
Definition: value_listhelpers.h:25
SListHandle_ValueSchema get_schema_list() const
Retrieves the list of Schemas from the Value.
void set_schema_list(const SListHandle_ValueSchema &list)
Sets the Value to contain a list of Schema.
int get_int() const
Get the integer that the Value contains.
Glib::ustring to_string() const
Convert the Value to a string.
void set_string_list(const SListHandle_ValueString &list)
Sets the Value to contain a list of strings.
Value get_car() const
Get a copy of the car of a VALUE_PAIR Value.
void set_bool_list(const SListHandle_ValueBool &list)
Sets the Value to contain a list of bools.
void set_car(const Value &car)
Set the car (in a pair, the first element) of a Value whose type is VALUE_PAIR.
void set_float_list(const SListHandle_ValueFloat &list)
Sets the Value to contain a list of doubles.
SListHandle_ValueFloat get_float_list() const
Gets a list of doubles from the Value.
Value(GConfValue *castitem, bool make_a_copy=false)
GConfValue * gobj()
Definition: value.h:158
GConfValue * gobj_copy() const
Provides access to the underlying C instance. The caller is responsible for freeing it...
Value & operator=(const Value &src)
double get_float() const
Get the double that the Value contains.
Value get_cdr() const
Get a copy of the cdr of a VALUE_PAIR Value.
Glib::ustring get_string() const
Get the string that the Value contains.
void set_cdr(const Value &cdr)
Set the cdr (in a pair, the second element) of a Value whose type is VALUE_PAIR.
void set_int_list(const SListHandle_ValueInt &list)
Sets the Value to contain a list of integers.
Wrapper for primitive types.
Definition: value.h:141
void set(gint val)
Set the integer value of a Value whose type is VALUE_INT.
ValueType get_type() const
Get the type of the Value.
SListHandle_ValueInt get_int_list() const
Retrieves the list of integers from the Value.
SListHandle_ValueBool get_bool_list() const
Retrieves the list of booleans from the Value.
ValueType get_list_type() const
Get the type of the list elements of the Value.
GConfValue * gobject_
Definition: value.h:165
bool get_bool() const
Get the boolean that the Value contains.
std::pair< Value, Value > ValuePair
Definition: value.h:119
void set_list_type(ValueType type)
Sets the type of the elements of a Value with type VALUE_LIST.
Schema get_schema() const
Get a copy of the Schema of the value.