1 '\" te
   2 .\" Copyright (c) 2002, Sun Microsystems, Inc. All Rights Reserved.
   3 .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License").  You may not use this file except in compliance with the License.
   4 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing.  See the License for the specific language governing permissions and limitations under the License.
   5 .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE.  If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
   6 .TH EXACCT::OBJECT::ITEM 3PERL "Dec 1, 2002"
   7 .SH NAME
   8 Exacct::Object::Item \- exacct item manipulation
   9 .SH SYNOPSIS
  10 .LP
  11 .nf
  12 use Sun::Solaris::Exacct::Object;
  13 my $ea_item = Sun::Solaris::Exacct::Object::Item->new(
  14     &EXT_UINT64 | &EXC_DEFAULT | &EXD_PROC_PID, $$);
  15 .fi
  16 
  17 .SH DESCRIPTION
  18 .sp
  19 .LP
  20 This module is used for manipulating \fBlibexacct\fR(3LIB) data Items. A
  21 \fBlibexacct\fR Item is represented as an opaque reference blessed into the
  22 \fBSun::Solaris::Exacct::Object::Item\fR class, which is a subclass of the
  23 \fBSun::Solaris::Exacct::Object\fR class. The underlying \fBlibexacct\fR data
  24 types are mapped onto Perl types as follows:
  25 .sp
  26 
  27 .sp
  28 .TS
  29 c c
  30 l l .
  31 libexacct type  Perl internal type
  32 \fBEXT_UINT8\fR IV (integer)
  33 \fBEXT_UINT16\fR        IV (integer)
  34 \fBEXT_UINT32\fR        IV (integer)
  35 \fBEXT_UINT64\fR        IV (integer)
  36 \fBEXT_DOUBLE\fR        NV (double)
  37 \fBEXT_STRING\fR        PV (string)
  38 \fBEXT_RAW\fR   PV (string)
  39 \fBEXT_EXACCT_OBJECT\fR \fBSun::Solaris::Exacct::Object subclass\fR
  40 .TE
  41 
  42 .SS "Constants"
  43 .sp
  44 .LP
  45 None.
  46 .SS "Functions"
  47 .sp
  48 .LP
  49 None.
  50 .SS "Class methods"
  51 .sp
  52 .LP
  53 Class methods include those inherited from the
  54 \fBSun::Solaris::Exacct::Object\fR base class, plus the following:
  55 .sp
  56 .ne 2
  57 .na
  58 \fB\fBnew($catalog, $value)\fR\fR
  59 .ad
  60 .RS 25n
  61 This method creates and returns a new \fBSun::Solaris::Exacct::Object::Item\fR.
  62 The catalog tag can be either an integer or a
  63 \fBSun::Solaris::Exacct::Catalog\fR. This catalog tag controls the conversion
  64 of the Perl value to the corresponding Perl exacct data type as described in
  65 the table above. If the catalog tag has a type field of
  66 \fBEXT_EXACCT_OBJECT\fR, the value must be a reference to either an Item or a
  67 Group object and the passed object is recursively copied and stored inside the
  68 new Item. Because the returned Item is constant, it is impossible, for example,
  69 to create an Item representing CPU seconds and subsequently modify its value or
  70 change its catalog value. This behavior is intended to prevent mismatches
  71 between the catalog tag and the data value.
  72 .RE
  73 
  74 .SS "Object methods"
  75 .sp
  76 .LP
  77 Object methods are those inherited from the \fBSun::Solaris::Exacct::Object\fR.
  78 .SS "Exports"
  79 .sp
  80 .LP
  81 None.
  82 .SH ATTRIBUTES
  83 .sp
  84 .LP
  85 See \fBattributes\fR(5) for descriptions of the following attributes:
  86 .sp
  87 
  88 .sp
  89 .TS
  90 box;
  91 c | c
  92 l | l .
  93 ATTRIBUTE TYPE  ATTRIBUTE VALUE
  94 _
  95 Interface Stability     Evolving
  96 .TE
  97 
  98 .SH SEE ALSO
  99 .sp
 100 .LP
 101 \fBExacct\fR(3PERL), \fBExacct::Catalog\fR(3PERL), \fBExacct::File\fR(3PERL),
 102 \fBExacct::Object\fR(3PERL), \fBExacct::Object::Group\fR(3PERL),
 103 \fBlibexacct\fR(3LIB), \fBattributes\fR(5)