man-pages/man3/Net::DBus::Binding::Value.3pm.html
2021-03-31 01:06:50 +01:00

113 lines
2.4 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML><HEAD><TITLE>Man page of Net::DBus::Binding::Value</TITLE>
</HEAD><BODY>
<H1>Net::DBus::Binding::Value</H1>
Section: User Contributed Perl Documentation (3pm)<BR>Updated: 2019-12-26<BR><A HREF="#index">Index</A>
<A HREF="/cgi-bin/man/man2html">Return to Main Contents</A><HR>
<A NAME="lbAB">&nbsp;</A>
<H2>NAME</H2>
Net::DBus::Binding::Value - Strongly typed data value
<A NAME="lbAC">&nbsp;</A>
<H2>SYNOPSIS</H2>
<PRE>
# Import the convenience functions
use Net::DBus qw(:typing);
# Call a method with passing an int32
$object-&gt;doit(dint32(&quot;3&quot;));
</PRE>
<A NAME="lbAD">&nbsp;</A>
<H2>DESCRIPTION</H2>
This module provides a simple wrapper around a raw Perl value,
associating an explicit DBus type with the value. This is used
in cases where a client is communicating with a server which does
not provide introspection data, but for which the basic data types
are not sufficient. This class should not be used directly, rather
the convenience functions in Net::DBus be called.
<A NAME="lbAE">&nbsp;</A>
<H2>METHODS</H2>
<DL COMPACT>
<DT id="1">my $value = Net::DBus::Binding::Value-&gt;new($type, $value);<DD>
Creates a wrapper for the perl value <TT>$value</TT> marking it as having
the dbus data type <TT>$type</TT>. It is not necessary to call this method
directly, instead the data typing methods in the Net::DBus object
should be used.
<DT id="2">my $raw = $value-&gt;value<DD>
Returns the raw perl value wrapped by this object
<DT id="3">my $type = $value-&gt;type<DD>
Returns the dbus data type this value is marked
as having
</DL>
<A NAME="lbAF">&nbsp;</A>
<H2>AUTHOR</H2>
Daniel P. Berrange
<A NAME="lbAG">&nbsp;</A>
<H2>COPYRIGHT</H2>
Copyright (C) 2004-2011 Daniel P. Berrange
<A NAME="lbAH">&nbsp;</A>
<H2>SEE ALSO</H2>
Net::DBus, Net::DBus::Binding::Introspector, Net::DBus::Binding::Iterator
<P>
<HR>
<A NAME="index">&nbsp;</A><H2>Index</H2>
<DL>
<DT id="4"><A HREF="#lbAB">NAME</A><DD>
<DT id="5"><A HREF="#lbAC">SYNOPSIS</A><DD>
<DT id="6"><A HREF="#lbAD">DESCRIPTION</A><DD>
<DT id="7"><A HREF="#lbAE">METHODS</A><DD>
<DT id="8"><A HREF="#lbAF">AUTHOR</A><DD>
<DT id="9"><A HREF="#lbAG">COPYRIGHT</A><DD>
<DT id="10"><A HREF="#lbAH">SEE ALSO</A><DD>
</DL>
<HR>
This document was created by
<A HREF="/cgi-bin/man/man2html">man2html</A>,
using the manual pages.<BR>
Time: 00:05:49 GMT, March 31, 2021
</BODY>
</HTML>