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,
17 associating an explicit DBus type with the value. This is used in cases
18 where a client is communicating with a server which does not provide
19 introspection data, but for which the basic data types are not
20 sufficient. This class should not be used directly, rather the
21 convenience functions 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 necessary 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 Daniel P. Berrange
38
40 Copyright (C) 2004-2011 Daniel P. Berrange
41
43 Net::DBus, Net::DBus::Binding::Introspector,
44 Net::DBus::Binding::Iterator
45
46
47
48perl v5.34.0 2021-07-22 Net::DBus::Binding::Value(3)