1
.TH 3 2005-06-09 "sfcc" "SFCBroker Client Library"
3
CMCICLientFT.enumClassNames() \- Enumerate class names
9
.BI CMCIClientFT.enumClassNames (CMCIClient* cl,
11
.BI CMPIObjectPath* op,
20
Get Class using \fIop\fP as reference. The content of the returned
21
class structure can be controled using the \fIflags\fP parameter.
23
Arguments are the client object pointer \fIcl\fP, ObjectPath object
24
pointer \fIop\fP that contains namespace and classname components,
25
\fIflags\fP to affect the returned class structure content,
26
and \fIrc\fP the CMPI return status (suppressed when NULL).
28
The \fIflags\fP argument is a bit mask that can contain the flag
29
\fICMPI_FLAG_DeepInheritance\fP.
32
When successful the \fBCMCIClientFT.enumClassNames()\fP function returns
33
a pointer to a CMPIEnumeration object that contains each class name found
34
and sets a successful status code in \fIrc\fR.
35
When unsuccessful it returns NULL and sets the \fIrc\fP argument with the
36
error code and and corresponding error string.
42
CMPIObjectPath * objectpath;
43
CMPIEnumeration * enumeration;
46
/* Setup a conncetion to the CIMOM */
47
cc = cmciConnect("localhost", NULL, NULL, NULL, NULL, NULL);
49
objectpath = newCMPIObjectPath("root/cimv2", NULL, NULL);
50
enumeration = cc->ft->enumClassNames(cc, objectpath, 0, &status);
53
fprintf(stderr, "op error code %d description %s\n",
54
status.rc, status.msg->hdl);
61
Common Manageability Programming Interface (CMPI) - OpenGroup,
63
CMCIClient(3), CMPIEnumeration(3), CMPIObjectPath(3), CMPIFlags(3),