13(2005-06-09)                                                    3(2005-06-09)
2
3
4

NAME

6       CMCICLientFT.enumClassNames() - Enumerate class names
7

SYNOPSIS

9       #include <cmci.h>
10
11       CMPIEnumeration*
12       CMCIClientFT.enumClassNames(CMCIClient*cl,
13                      CMPIObjectPath*op,
14                      CMPIFlagsflags,
15                      CMPIStatus*rc);
16
17

DESCRIPTION

19       Get  Class  using  op  as  reference. The content of the returned class
20       structure can be controled using the flags parameter.
21
22       Arguments are the client object pointer cl, ObjectPath  object  pointer
23       op  that  contains  namespace and classname components, flags to affect
24       the returned class structure content, and rc  the  CMPI  return  status
25       (suppressed when NULL).
26
27       The   flags   argument  is  a  bit  mask  that  can  contain  the  flag
28       CMPI_FLAG_DeepInheritance.
29

RETURN VALUE

31       When successful the CMCIClientFT.enumClassNames()  function  returns  a
32       pointer to a CMPIEnumeration object that contains each class name found
33       and sets a successful status code in rc.  When unsuccessful it  returns
34       NULL and sets the rc argument with the error code and and corresponding
35       error string.
36

ERRORS

EXAMPLES

39          CMCIClient *cc;
40          CMPIObjectPath * objectpath;
41          CMPIEnumeration * enumeration;
42          CMPIStatus status;
43
44          /* Setup a conncetion to the CIMOM */
45          cc = cmciConnect("localhost", NULL, NULL, NULL, NULL, NULL);
46
47          objectpath = newCMPIObjectPath("root/cimv2", NULL, NULL);
48          enumeration = cc->ft->enumClassNames(cc, objectpath, 0, &status);
49
50          if (!status.rc) {
51            fprintf(stderr, "op error code %d description %s0,
52                       status.rc, status.msg->hdl);
53            abort();
54          }
55

CONFORMING TO

SEE ALSO

58       Common Manageability Programming Interface (CMPI) - OpenGroup,
59       CMCIClient(3),  CMPIEnumeration(3),  CMPIObjectPath(3),   CMPIFlags(3),
60       CMPIStatus(3)
61
62
63
64SFCBroker Client Library             sfcc                        3(2005-06-09)
Impressum