1Exacct::Object::Item(3PERL) Perl Library Functions Exacct::Object::Item(3PERL)
2
3
4

NAME

6       Exacct::Object::Item - exacct item manipulation
7

SYNOPSIS

9       use Sun::Solaris::Exacct::Object;
10       my $ea_item = Sun::Solaris::Exacct::Object::Item->new(
11           &EXT_UINT64 | &EXC_DEFAULT | &EXD_PROC_PID, $$);
12
13

DESCRIPTION

15       This  module  is  used  for  manipulating libexacct(3LIB) data Items. A
16       libexacct Item is represented as an opaque reference blessed  into  the
17       Sun::Solaris::Exacct::Object::Item  class,  which  is a subclass of the
18       Sun::Solaris::Exacct::Object class. The underlying libexacct data types
19       are mapped onto Perl types as follows:
20
21
22
23
24             libexacct type                   Perl internal type
25       EXT_UINT8                     IV (integer)
26       EXT_UINT16                    IV (integer)
27       EXT_UINT32                    IV (integer)
28       EXT_UINT64                    IV (integer)
29       EXT_DOUBLE                    NV (double)
30       EXT_STRING                    PV (string)
31       EXT_RAW                       PV (string)
32       EXT_EXACCT_OBJECT             Sun::Solaris::Exacct::Object subclass
33
34
35   Constants
36       None.
37
38   Functions
39       None.
40
41   Class methods
42       Class      methods     include     those     inherited     from     the
43       Sun::Solaris::Exacct::Object base class, plus the following:
44
45       new($catalog, $value)    This  method  creates  and   returns   a   new
46                                Sun::Solaris::Exacct::Object::Item.  The cata‐
47                                log  tag  can  be  either  an  integer  or   a
48                                Sun::Solaris::Exacct::Catalog.   This  catalog
49                                tag controls the conversion of the Perl  value
50                                to  the corresponding Perl exacct data type as
51                                described in the table above. If  the  catalog
52                                tag has a type field of EXT_EXACCT_OBJECT, the
53                                value must be a reference to either an Item or
54                                a Group object and the passed object is recur‐
55                                sively copied and stored inside the new  Item.
56                                Because  the  returned Item is constant, it is
57                                impossible, for example,  to  create  an  Item
58                                representing CPU seconds and subsequently mod‐
59                                ify its value or  change  its  catalog  value.
60                                This  behavior  is  intended  to  prevent mis‐
61                                matches between the catalog tag and  the  data
62                                value.
63
64
65   Object methods
66       Object      methods      are      those      inherited     from     the
67       Sun::Solaris::Exacct::Object.
68
69   Exports
70       None.
71

ATTRIBUTES

73       See attributes(5) for descriptions of the following attributes:
74
75
76
77
78       ┌─────────────────────────────┬─────────────────────────────┐
79       │      ATTRIBUTE TYPE         │      ATTRIBUTE VALUE        │
80       ├─────────────────────────────┼─────────────────────────────┤
81       │Availability                 │SUNWpl5u                     │
82       ├─────────────────────────────┼─────────────────────────────┤
83       │Interface Stability          │Evolving                     │
84       └─────────────────────────────┴─────────────────────────────┘
85

SEE ALSO

87       Exacct(3PERL),       Exacct::Catalog(3PERL),       Exacct::File(3PERL),
88       Exacct::Object(3PERL),  Exacct::Object::Group(3PERL),  libexacct(3LIB),
89       attributes(5)
90
91
92
93SunOS 5.11                        1 Dec 2002       Exacct::Object::Item(3PERL)
Impressum