1Net::DBus::Binding::ValUusee(r3)Contributed Perl DocumenNteatt:i:oDnBus::Binding::Value(3)
2
3
4
6 Net::DBus::Binding::Value - Strongly typed data value
7
9 # Import the convenience functions
10 use Net::DBus qw(:typing);
11
12 # Call a method with passing an int32
13 $object->doit(dint32("3"));
14
16 This module provides a simple wrapper around a raw Perl value, associ‐
17 ating an explicit DBus type with the value. This is used in cases where
18 a client is communicating with a server which does not provide intro‐
19 spection data, but for which the basic data types are not sufficient.
20 This class should not be used directly, rather the convenience func‐
21 tions in Net::DBus be called.
22
24 my $value = Net::DBus::Binding::Value->new($type, $value);
25 Creates a wrapper for the perl value $value marking it as having
26 the dbus data type $type. It is not neccessary to call this method
27 directly, instead the data typing methods in the Net::DBus object
28 should be used.
29
30 my $raw = $value->value
31 Returns the raw perl value wrapped by this object
32
33 my $type = $value->type
34 Returns the dbus data type this value is marked as having
35
37 Net::DBus, Net::DBus::Binding::Introspector, Net::DBus::Binding::Itera‐
38 tor
39
41 Daniel Berrange <dan@berrange.com>
42
44 Copyright 2004-2005 by Daniel Berrange
45
46
47
48perl v5.8.8 2008-02-20 Net::DBus::Binding::Value(3)