|
Packit |
022b05 |
.\"
|
|
Packit |
022b05 |
.TH "smi_class" "3" "February 10, 2007" "" "SMI Management Information Library"
|
|
Packit |
022b05 |
.SH "NAME"
|
|
Packit |
022b05 |
.\" START OF MAN PAGE COPIES
|
|
Packit |
022b05 |
smiGetClass
|
|
Packit |
022b05 |
smiGetFirstClass,
|
|
Packit |
022b05 |
smiGetNextClass,
|
|
Packit |
022b05 |
smiGetClassModule,
|
|
Packit |
022b05 |
smiGetParentClass,
|
|
Packit |
022b05 |
smiIsClassScalar
|
|
Packit |
022b05 |
.\" END OF MAN PAGE COPIES
|
|
Packit |
022b05 |
\- SMI class
|
|
Packit |
022b05 |
information routines
|
|
Packit |
022b05 |
.SH "SYNOPSIS"
|
|
Packit |
022b05 |
.nf
|
|
Packit |
022b05 |
.B #include <smi.h>
|
|
Packit |
022b05 |
.RS
|
|
Packit |
022b05 |
.RE
|
|
Packit |
022b05 |
.sp
|
|
Packit |
022b05 |
.BI "SmiClass *smiGetClass(SmiModule *" smiModulePtr ", char *" name );
|
|
Packit |
022b05 |
.RE
|
|
Packit |
022b05 |
.sp
|
|
Packit |
022b05 |
.BI "SmiClass *smiGetFirstClass(SmiModule *" smiModulePtr );
|
|
Packit |
022b05 |
.RE
|
|
Packit |
022b05 |
.sp
|
|
Packit |
022b05 |
.BI "SmiClass *smiGetNextClass(SmiClass *" smiClassPtr );
|
|
Packit |
022b05 |
.RE
|
|
Packit |
022b05 |
.sp
|
|
Packit |
022b05 |
.BI "SmiClass *smiGetParentClass(SmiClass *" smiClassPtr );
|
|
Packit |
022b05 |
.RE
|
|
Packit |
022b05 |
.sp
|
|
Packit |
022b05 |
.BI "SmiModule *smiGetClassModule(SmiClass *" smiClassPtr );
|
|
Packit |
022b05 |
.RE
|
|
Packit |
022b05 |
.sp
|
|
Packit |
022b05 |
.BI "int smiIsClassScalar(SmiClass *" smiClassPtr );
|
|
Packit |
022b05 |
.RE
|
|
Packit |
022b05 |
|
|
Packit |
022b05 |
typedef struct SmiClass {
|
|
Packit |
022b05 |
SmiIdentifier name;
|
|
Packit |
022b05 |
SmiDecl decl;
|
|
Packit |
022b05 |
SmiStatus status;
|
|
Packit |
022b05 |
char *description;
|
|
Packit |
022b05 |
char *reference;
|
|
Packit |
022b05 |
} SmiClass;
|
|
Packit |
022b05 |
|
|
Packit |
022b05 |
.fi
|
|
Packit |
022b05 |
.SH "DESCRIPTION"
|
|
Packit |
022b05 |
These functions retrieve information on a SMIng class definition (SMIng).
|
|
Packit |
022b05 |
.PP
|
|
Packit |
022b05 |
\fBsmiGetClass(SmiModule *smiModulePtr,char *name)\fP returns a
|
|
Packit |
022b05 |
pointer to \fBstruct SmiClass\fP that represents the class with the
|
|
Packit |
022b05 |
given \fIname\fP in the given module(\fIsmiModulePtr\fP ), or NULL if
|
|
Packit |
022b05 |
the class with the given name does not exist.
|
|
Packit |
022b05 |
.PP
|
|
Packit |
022b05 |
\fBsmiGetFirstClass(SmiModule *smiModulePtr)\fP and
|
|
Packit |
022b05 |
\fBsmiGetNextClass(SmiClass *smiClassPtr)\fP are used to iterate
|
|
Packit |
022b05 |
through the classes of the module given by \fIsmiModulePtr\fP. They
|
|
Packit |
022b05 |
return a pointer to \fBstruct SmiClass\fP that represents a class or
|
|
Packit |
022b05 |
NULL if there are no classes left in the module, or error has
|
|
Packit |
022b05 |
occurred.
|
|
Packit |
022b05 |
.PP
|
|
Packit |
022b05 |
\fBsmiGetClassModule(SmiClass *smiClassPtr)\fP returns a pointer to
|
|
Packit |
022b05 |
\fBstruct SmiModule\fP, of the module containing the given class.
|
|
Packit |
022b05 |
.PP
|
|
Packit |
022b05 |
\fBsmiGetParentClass(SmiClass *smiClassPtr)\fP returns a pointer to
|
|
Packit |
022b05 |
\fBstruct SmiClass\fP pointing to the parent of the given
|
|
Packit |
022b05 |
\fIsmiClassPtr\fP, or NULL if the class is not derived.
|
|
Packit |
022b05 |
.PP
|
|
Packit |
022b05 |
\fBsmiIsClassScalar(SmiClass *smiClassPtr)\fP returns \fBint\fP
|
|
Packit |
022b05 |
\fI1\fP if the class is scalar(its unique statement contains an empty
|
|
Packit |
022b05 |
list) or \fI0\fP otherwise. This method can be used in conjunction
|
|
Packit |
022b05 |
with \fBsmiGetFirstUniqueAttribute()\fP to determine whether the class
|
|
Packit |
022b05 |
is meant to be instantiated separately (has unique statement with
|
|
Packit |
022b05 |
nonempty list), or if it is meant to be used as part of another class
|
|
Packit |
022b05 |
(has no unique statement).
|
|
Packit |
022b05 |
.SH "FILES"
|
|
Packit |
022b05 |
.nf
|
|
Packit |
022b05 |
${prefix}/include/smi.h SMI library header file
|
|
Packit |
022b05 |
.fi
|
|
Packit |
022b05 |
.SH "SEE ALSO"
|
|
Packit |
022b05 |
.BR libsmi "(3), "
|
|
Packit |
022b05 |
.BR smi_module "(3), "
|
|
Packit |
022b05 |
.BR smi.h
|
|
Packit |
022b05 |
.SH "AUTHOR"
|
|
Packit |
022b05 |
(C) 2007 Kaloyan Kanev, Jacobs University, Germany <k.kanev@jacobs-university.de>
|
|
Packit |
022b05 |
.br
|