1Exacct::Object::Group(3PERL)Perl Library FunctionsExacct::Object::Group(3PERL)
2
3
4

NAME

6       Exacct::Object::Group - exacct group manipulation
7

SYNOPSIS

9       use Sun::Solaris::Exacct::Object;
10       my $ea_grp = Sun::Solaris::Exacct::Object::Group->new(
11          & EXT_GROUP | &EXC_DEFAULT | &EXD_GROUP_PROC);
12
13

DESCRIPTION

15       This  module  is used for manipulating libexacct(3LIB) Group objects. A
16       libexacct Group object is represented as an  opaque  reference  blessed
17       into the Sun::Solaris::Exacct::Object::Group class, which is a subclass
18       of the Sun::Solaris::Exacct::Object class. The Items within a Group are
19       stored  inside  a  Perl array. A reference to the array can be accessed
20       with the inherited value() method. The individual Items within a  Group
21       can be manipulated with the normal Perl array syntax and operators. All
22       data   elements   of   the   array   must   be   derived    from    the
23       Sun::Solaris::Exacct::Object  class.   Group objects can also be nested
24       inside each other simply by adding an existing Group as a data Item.
25
26   Constants
27       None.
28
29   Functions
30       None.
31
32   Class methods
33       Class     methods     include     those     inherited     from      the
34       Sun::Solaris::Exacct::Object base class, plus the following:
35
36       new($catalog, @objects)    This   method  creates  and  returns  a  new
37                                  Sun::Solaris::Exacct::Object::Group.     The
38                                  catalog  tag  can  be either an integer or a
39                                  Sun::Solaris::Exacct::Catalog.  The  catalog
40                                  tag should be a valid catalog tag for a Perl
41                                  exacct Group object. The @objects  parameter
42                                  is a list of Sun::Solaris::Exacct::Object to
43                                  be stored inside the Group. A  copy  of  all
44                                  the  passed  Items  is  taken  and any Group
45                                  objects are recursively copied. The contents
46                                  of the returned Group object can be accessed
47                                  with the array returned by the value method.
48
49
50   Object methods
51       as_hash()        This method returns the contents of  the  group  as  a
52                        hash  reference.  It  uses  the  string  value of each
53                        item's catalog ID as the hash entry key and the scalar
54                        value  returned  by  value()  as the hash entry value.
55                        This form should be used if  there  are  no  duplicate
56                        catalog tags in the group.
57
58                        This  method  and  its companion as_hashlist() are the
59                        fastest ways to access the contents of a Group.
60
61
62       as_hashlist()    This method returns the contents of  the  group  as  a
63                        hash  reference.  It  uses  the  string  value of each
64                        item's catalog id as the hash entry key and  an  array
65                        of  the  scalar values returned by value() as the hash
66                        entry value for all the items that share a common key.
67                        This  form  should be used if there might be duplicate
68                        catalog tags in the group.
69
70                        This  method  and  its  companion  as_hash()  are  the
71                        fastest ways to access the contents of a Group.
72
73
74   Exports
75       None.
76

ATTRIBUTES

78       See attributes(5) for descriptions of the following attributes:
79
80
81
82
83       ┌─────────────────────────────┬─────────────────────────────┐
84       │      ATTRIBUTE TYPE         │      ATTRIBUTE VALUE        │
85       ├─────────────────────────────┼─────────────────────────────┤
86       │Availability                 │SUNWpl5u                     │
87       ├─────────────────────────────┼─────────────────────────────┤
88       │Interface Stability          │Evolving                     │
89       └─────────────────────────────┴─────────────────────────────┘
90

SEE ALSO

92       Exacct(3PERL),       Exacct::Catalog(3PERL),       Exacct::File(3PERL),
93       Exacct::Object(3PERL),  Exacct::Object::Item(3PERL),   libexacct(3LIB),
94       attributes(5)
95
96
97
98SunOS 5.11                        1 Dec 2002      Exacct::Object::Group(3PERL)
Impressum