GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  GNOME2::GCONF::VALUE (3)

.ds Aq ’

NAME

Gnome2::GConf::Value - Opaque datatype for generic values

CONTENTS

SYNOPSIS



  $client = Gnome2::GConf::Client->get_default;
  $client->set($config_key,
      {
        type  => string,
        value => Hello, World,
      });
  print "The Meaning of Life." if ($client->get($another_key)->{value} == 42);



DESCRIPTION

GConfValue is a dynamic type similar to GValue, and represents a value that can be obtained from or stored in the configuration database; it contains the value bound to a key, and its type.

In perl, it’s an hashref containing these keys:
<B>typeB> The type of the data. Fundamental types are ’string’, ’int’, ’float’ and ’bool’. Lists are handled by passing an arrayref as the payload of the value key:



        $client->set($key, { type => string, value => some string });
        $client->set($key, { type => float,  value => 0.5           });
        $client->set($key, { type => bool,   value => FALSE         });
        $client->set($key, { type => int,    value => [0..15]       });



Pairs are handled by using the special type ’pair’, and passing, in place of the value key, the car and the cdr keys, each containing an hashref representing a GConfValue:



        $client->set($key, {
                        type => pair,
                        car  => { type => string, value => some string },
                        cdr  => { type => int,    value => 42            },
                });



This is needed since pairs might have different types; lists, instead, are of the same type.

<B>valueB> The payload, containing the value of type type. It is used only for fundamental types (scalars or lists).
<B>carB>, <B>cdrB> Special keys, that must be used only when working with the ’pair’ type.

SEE ALSO

Gnome2::GConf(3pm), Gnome2::GConf::Entry(3pm), Gnome2::GConf::Schema(3pm), Gnome2::GConf::ChangeSet(3pm).

METHODS

integer = CW$value_a->compare ($value_b)

o $value_b (value)
Since: gconf 2.13

string = CW$value->to_string

SEE ALSO

Gnome2::GConf

COPYRIGHT

Copyright (C) 2003-2006 by the gtk2-perl team.

This software is licensed under the LGPL. See Gnome2::GConf for a full notice.

Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 GNOME2::GCONF::VALUE (3) 2016-04-05

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.