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

NAME

6       CMCIClientFT.getClass() - Get class as reference
7

SYNOPSIS

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

DESCRIPTION

20       Get  Class  using  op  as  reference. The content of the returned class
21       structure can be controled using the flags parameter.
22
23       Arguments are the client object pointer cl, ObjectPath  object  pointer
24       op  that  contains  namespace and classname components, flags to affect
25       the returned class structure content, properties array,  where  if  not
26       NULL the members of the array define one or more Property names, and rc
27       the CMPI return status (suppressed when NULL).
28
29       The flags argument is a bit mask that can contain combinations  of  the
30       following  flags - CMPI_FLAG_LocalOnly, CMPI_FLAG_IncludeQualifiers and
31       CMPI_FLAG_IncludeClassOrigin.
32
33       The properties array defines what properties should be returned for the
34       class.   If this argument is not NULL, only the class properties in the
35       list are returned.  If it's NULL all class properties are returned.
36

RETURN VALUE

38       When successful the CMCIClientFT.getClass() function returns a  pointer
39       to  a  CMPIConstClass  object  and sets a successful status code in rc.
40       When unsuccessful it returns NULL and sets the  rc  argument  with  the
41       error code and and corresponding error string.
42

ERRORS

EXAMPLES

45          CMCIClient *cc;
46          CMPIObjectPath * objectpath;
47          CMPIInstance * instance;
48          CMPIEnumeration * enumeration;
49          CMPIClass *class;
50          CMPIStatus status;
51
52          /* Setup a conncetion to the CIMOM */
53          cc = cmciConnect("localhost", NULL, NULL, NULL, NULL, NULL);
54
55          objectpath = newCMPIObjectPath("root/cimv2", "Linux_ComputerSystem",
56       NULL);
57          class = cc->ft->getClass(cc, objectpath, 0, NULL, &status);
58
59          if (!status.rc) {       fprintf(stderr,  "operation  error  code  %d
60       description     %s0,                    status.rc,    status.msg->hdl);
61            abort();
62          }
63

CONFORMING TO

SEE ALSO

66       Common Manageability Programming Interface (CMPI) - OpenGroup,
67       CMCIClient(3), CMPIConstClass(3), CMPIObjectPath(3), CMPIFlags(3), CMP‐
68       IStatus(3)
69
70
71
72SFCBroker Client Library             sfcc                        3(2005-06-09)
Impressum