Exacct::Object::Item.3perl revision c10c16dec587a0662068f6e2991c29ed3a9db943
te
Copyright (c) 2002, Sun Microsystems, Inc. All Rights Reserved.
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.
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.
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]
Exacct::Object::Item 3PERL "1 Dec 2002" "SunOS 5.11" "Perl Library Functions"
NAME
Exacct::Object::Item - exacct item manipulation
SYNOPSIS

use Sun::Solaris::Exacct::Object;
my $ea_item = Sun::Solaris::Exacct::Object::Item->new(
 &EXT_UINT64 | &EXC_DEFAULT | &EXD_PROC_PID, $$);
DESCRIPTION

This module is used for manipulating libexacct(3LIB) data Items. A libexacct Item is represented as an opaque reference blessed into the Sun::Solaris::Exacct::Object::Item class, which is a subclass of the Sun::Solaris::Exacct::Object class. The underlying libexacct data types are mapped onto Perl types as follows:

libexacct typePerl internal type
EXT_UINT8IV (integer)
EXT_UINT16IV (integer)
EXT_UINT32IV (integer)
EXT_UINT64IV (integer)
EXT_DOUBLENV (double)
EXT_STRINGPV (string)
EXT_RAWPV (string)
EXT_EXACCT_OBJECTSun::Solaris::Exacct::Object subclass
"Constants"

None.

"Functions"

None.

"Class methods"

Class methods include those inherited from the Sun::Solaris::Exacct::Object base class, plus the following:

new($catalog, $value)

This method creates and returns a new Sun::Solaris::Exacct::Object::Item. The catalog tag can be either an integer or a Sun::Solaris::Exacct::Catalog. This catalog tag controls the conversion of the Perl value to the corresponding Perl exacct data type as described in the table above. If the catalog tag has a type field of EXT_EXACCT_OBJECT, the value must be a reference to either an Item or a Group object and the passed object is recursively copied and stored inside the new Item. Because the returned Item is constant, it is impossible, for example, to create an Item representing CPU seconds and subsequently modify its value or change its catalog value. This behavior is intended to prevent mismatches between the catalog tag and the data value.

"Object methods"

Object methods are those inherited from the Sun::Solaris::Exacct::Object.

"Exports"

None.

ATTRIBUTES

See attributes(5) for descriptions of the following attributes:

ATTRIBUTE TYPEATTRIBUTE VALUE
Interface StabilityEvolving
SEE ALSO

Exacct(3PERL), Exacct::Catalog(3PERL), Exacct::File(3PERL), Exacct::Object(3PERL), Exacct::Object::Group(3PERL), libexacct(3LIB), attributes(5)