0
|
1 |
'\" t
|
|
2 |
.\"
|
|
3 |
.\" CDDL HEADER START
|
|
4 |
.\"
|
|
5 |
.\" The contents of this file are subject to the terms of the
|
|
6 |
.\" Common Development and Distribution License (the "License").
|
|
7 |
.\" You may not use this file except in compliance with the License.
|
|
8 |
.\"
|
|
9 |
.\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
|
|
10 |
.\" or http://www.opensolaris.org/os/licensing.
|
|
11 |
.\" See the License for the specific language governing permissions
|
|
12 |
.\" and limitations under the License.
|
|
13 |
.\"
|
|
14 |
.\" When distributing Covered Code, include this CDDL HEADER in each
|
|
15 |
.\" file and include the License file at usr/src/OPENSOLARIS.LICENSE.
|
|
16 |
.\" If applicable, add the following below this CDDL HEADER, with the
|
|
17 |
.\" fields enclosed by brackets "[]" replaced with your own identifying
|
|
18 |
.\" information: Portions Copyright [yyyy] [name of copyright owner]
|
|
19 |
.\"
|
|
20 |
.\" CDDL HEADER END
|
|
21 |
.\"
|
11
|
22 |
.\" Copyright 2010 Sun Microsystems, Inc. All rights reserved.
|
0
|
23 |
.\" Use is subject to license terms.
|
|
24 |
.\"
|
11
|
25 |
.\" ident "@(#)genclass.1 1.2 10/03/16 SMI"
|
0
|
26 |
.\"
|
|
27 |
.\" Man page for genclass
|
|
28 |
.TH "genclass" "1" "" "" ""
|
|
29 |
.SH "NAME"
|
|
30 |
.B genclass
|
|
31 |
\- generate C++ definitions from MOF classes
|
|
32 |
.SH "SYNOPSIS"
|
|
33 |
.B genclass
|
|
34 |
[OPTIONS] <class\-names>...
|
|
35 |
|
|
36 |
.SH "DESCRIPTION"
|
|
37 |
.P
|
|
38 |
The
|
|
39 |
.B genclass
|
|
40 |
utility generates C++ definitions from MOF classes. For each class-name
|
|
41 |
argument, it generates at least two files: CLASSNAME.h (containing the
|
|
42 |
corresponding C++ class) and CLASSNAME.cpp (containing opaque meta-data for
|
|
43 |
the class). It also generates header and source files for any dependent
|
|
44 |
classes (ancestor and reference classes).
|
|
45 |
.P
|
|
46 |
.B genclass
|
|
47 |
to process the following MOF files:
|
|
48 |
.RS
|
|
49 |
.TP 3
|
|
50 |
1. First CIM_Schema.mof or first file of form
|
|
51 |
cimv[0-9]*.mof (required).
|
|
52 |
.TP
|
|
53 |
2. Second repository.mof (optional).
|
|
54 |
.TP
|
|
55 |
3. Finally any files given by the -M option (optional).
|
|
56 |
.RE
|
|
57 |
.P
|
|
58 |
.B genclass
|
|
59 |
requires the CIMPLE_MOF_PATH environment variable to be set, where
|
|
60 |
it expects to find CIM_Schema.mof or cimv[0-9]*.mof (which contains the CIM
|
|
61 |
schema). The syntax of CIMPLE_MOF_PATH is similar to the Linux/Unix PATH
|
|
62 |
environment variable (i.e., a list of directories separated by colons). For
|
|
63 |
example:
|
|
64 |
.TP
|
|
65 |
export CIMPLE_MOF_PATH=/opt/cimple/schema/cim2131:/tmp/cim
|
|
66 |
.PP
|
|
67 |
.B genclass
|
|
68 |
searches for user-defined MOF files in the following way:
|
|
69 |
.RS
|
|
70 |
.TP
|
|
71 |
1. First in the current directory.
|
|
72 |
.TP
|
|
73 |
2. Second under $CIMPLE_MOF_PATH.
|
|
74 |
.TP
|
|
75 |
3. Finally, under directories given by the -I options.
|
|
76 |
.RE
|
|
77 |
|
|
78 |
.SH "OPTIONS"
|
|
79 |
.B genclass
|
|
80 |
recognizes the following options:
|
|
81 |
.RS
|
|
82 |
.TP
|
|
83 |
.B -V
|
|
84 |
Print the version number.
|
|
85 |
.TP
|
|
86 |
.B -I path
|
|
87 |
Add to MOF include path (can be repeated).
|
|
88 |
.TP
|
|
89 |
.B -M file
|
|
90 |
Add to list of MOF files to be parsed (can be repeated).
|
|
91 |
.TP
|
|
92 |
.B -r
|
|
93 |
Generate repository.h and repository.cpp.
|
|
94 |
.TP
|
|
95 |
.B -h
|
|
96 |
Print the help message.
|
|
97 |
.TP
|
|
98 |
.B -e
|
|
99 |
Generate enum tags for Values/ValueMap qualifiers.
|
|
100 |
.TP
|
|
101 |
.B -s
|
|
102 |
Generate classes for entire CIM schema.
|
|
103 |
.TP
|
|
104 |
.B -l
|
|
105 |
Export class symbols (for shared libraries).
|
|
106 |
.TP
|
|
107 |
.B -q
|
|
108 |
Generate non-boolean qualifiers and non-description qualifiers.
|
|
109 |
.TP
|
|
110 |
.B -d
|
|
111 |
Generate Description qualifiers.
|
|
112 |
.TP
|
|
113 |
.B -b
|
|
114 |
Generate boolean qualifiers (in addition to bit mask).
|
|
115 |
.TP
|
|
116 |
.B -f file
|
|
117 |
Read class names from this file (one per line).
|
|
118 |
.TP
|
|
119 |
.B -S
|
|
120 |
Create .genclass file that contains generated .cpp files.
|
|
121 |
.RE
|
|
122 |
|
|
123 |
.SH "EXIT STATUS"
|
|
124 |
When an error occurs, an error message is written to the standard error
|
|
125 |
stream and a non-zero exit status value is returned.
|
|
126 |
|
|
127 |
.SH "SEE ALSO"
|
|
128 |
genhnd(1), genmak(1), genmod(1), genproj(1), genprov(1), regmod(1).
|
|
129 |
|
|
130 |
'\" t
|
|
131 |
.\"
|
|
132 |
.\" Modified for Solaris to add the Solaris stability classification,
|
|
133 |
.\" and to add a note about source availability.
|
|
134 |
.\"
|
|
135 |
.\" Begin Sun update
|
|
136 |
.SH ATTRIBUTES
|
|
137 |
See
|
|
138 |
.BR attributes (5)
|
|
139 |
for descriptions of the following attributes:
|
|
140 |
.sp
|
|
141 |
.TS
|
|
142 |
box;
|
|
143 |
cbp-1 | cbp-1
|
|
144 |
l | l .
|
|
145 |
ATTRIBUTE TYPE ATTRIBUTE VALUE
|
|
146 |
=
|
11
|
147 |
Availability system/management/wbem/cimple
|
0
|
148 |
=
|
|
149 |
Interface Stability Uncommitted
|
|
150 |
.TE
|
|
151 |
.PP
|
|
152 |
.SH NOTES
|
|
153 |
Source for SimpleWBEM (Cimple) is available on http://opensolaris.org.
|
|
154 |
.\" End Sun update
|