smi_attribute



smi_attribute

NAME
SYNOPSIS
DESCRIPTION
FILES
SEE ALSO
AUTHOR

NAME

smiGetAttribute, smiGetFirstAttribute, smiGetNextAttribute, smiGetAttributeParentClass, smiGetAttributeParentType, smiGetFirstUniqueAttribute, smiGetNextUniqueAttribute, smiGetEvent, smiGetFirstEvent, smiGetNextEvent, smiGetAttributeFirstRange, smiGetAttributeNextRange, smiGetAttributeFirstNamedNumber, smiGetAttributeNextNamedNumber − SMI Attribute information routines

SYNOPSIS

#include <smi.h>

SmiAttribute *smiGetAttribute(SmiClass *smiClassPtr, char *name);

SmiAttribute *smiGetFirstAttribute(SmiClass *smiClassPtr);

SmiAttribute *smiGetNextAttribute(SmiAttribute *smiAttributePtr);

SmiType *smiGetAttributeParentType(SmiType *smiAttributePtr);

SmiClass *smiGetAttributeParentClass(SmiType *smiAttributePtr);

SmiAttribute *smiGetFirstUniqueAttribute(SmiClass *smiClassPtr);

SmiAttribute *smiGetNextUniqueAttribute(SmiAttribute *smiAttributePtr);

SmiRange *smiGetAttributeFirstRange(SmiAttribute *smiAttributePtr);

SmiRange *smiGetAttributeNextRange(SmiRange *smiRangePtr);

SmiNamedNumber *smiGetAttributeFirstNamedNumber(SmiAttribute *smiAttributePtr);

SmiNamedNumber *smiGetAttributeNextNamedNumber(SmiNamedNumber *smiNamedNumberPtr);

typedef struct SmiAttribute {
SmiIdentifier name;
SmiDecl decl;
SmiStatus status;
char *description;
char *reference;
} SmiAttribute;

typedef struct SmiRange {
SmiValue minValue;
SmiValue maxValue;
} SmiRange;

typedef struct SmiNamedNumber {
SmiIdentifier name;
SmiValue value;
} SmiNamedNumber;

DESCRIPTION

These functions retrieve information on a SMIng Attribute definition (SMIng).

smiGetAttribute(SmiClass *smiClassPtr, char *name) returns a pointer to struct SmiAttribute for the Attribute with the given name in the given class(smiClassPtr), or NULL if the attribute with the given name does not exist.

smiGetFirstAttribute(SmiClass *smiClassPtr) and smiGetNextAttribute(SmiAttribute *smiAttributePtr) are used to iterate through the attributes of the class given by smiClassPtr. They return a pointer to struct SmiAttribute that represents an attribute or NULL if there are no attributes left in the class, or error has occurred.

smiGetAttributeParentClass(SmiAttribute *smiAttributePtr) returns a pointer to a struct SmiClass, pointing to the parent class of the given smiAttributePtr, or NULL if the attribute does not reference class. Note that attributes always have either parent type or parent class.

smiGetAttributeParentType(SmiType *smiAttributePtr) returns a pointer to a struct SmiType, pointing to the parent type of the given smiAttributePtr, or NULL if the attribute does not reference type. Note that attributes always have either parent type or parent class.

smiGetFirstUniqueAttribute(SmiClass *smiClassPtr) and smiGetNextUniqueAttribute(SmiType *smiAttributePtr) are used to iterate through the unique attributes of the class given by smiClassPtr. They return a pointer to struct SmiAttribute that represents a unique attribute or NULL if there are no unique attributes left in the class, or error has occurred. This function MUST NOT be used for scalar classes, so it should only be called after isClassScalar() has returned 0.

smiGetAttributeFirstRange(SmiAttribute *smiAttributePtr), and smiGetAttributeNextRange(SmiRange *smiRangePtr) are used to iterate through ranges that restrict number or octet string types. Both functions return a pointer to the struct SmiRange representing the range, or NULL if there are no more ranges, or error has occurred.

smiGetAttributeFirstNamedNumber(SmiAttribute *smiAttributePtr) and smiGetAttributeNextNamedNumber(SmiNamedNumber *smiNamedNumberPtr) are used to iterate through named numbers of bits or enumerations for attributes, which reference types, and to retrieve the reference restriction of a pointer. Both functions return a pointer to the struct SmiNamedNumber representing the named number, or NULL if there are no named numbers left, or error has occurred. smiGetFirstNamedNumber() can be used to retrieve the name of the identity that is restricting Pointer type, as it is stored as the name of the first named number.

FILES

/usr/include/smi.h SMI library header file

SEE ALSO

libsmi(3), smi_module(3), smi.h

AUTHOR

(C) 2007 Kaloyan Kanev, Jacobs University, Germany <k.kanev@jacobs-university.de>




More Linux Commands

manpages/dracut-pre-pivot.service.8.html
dracut-pre-pivot.service(8) runs the dracut hooks before swi
This service runs all dracut hooks before the system switched to the real root. AUTHORS Harald Hoyer SEE ALSO dracut.bootup(7) dracut(8) dracut-pre-pivot.servic

manpages/slk_clear.3ncurses.html
slk_clear(3ncurses) - curses soft label routines (Man Page)
The slk* functions manipulate the set of soft function-key labels that exist on many terminals. For those terminals that do not have soft labels, curses takes o

manpages/ntpq.1.html
ntpq(1) - standard NTP query program - Linux manual page....
This manual page briefly documents the ntpq command. The [= prog-name =] utility program is used to query NTP servers which implement the standard NTP mode 6 co

manpages/Tcl_SetErrno.3.html
Tcl_SetErrno(3) - manipulate errno to store and retrieve err
Tcl_SetErrno and Tcl_GetErrno provide portable access to the errno variable, which is used to record a POSIX error code after system calls and other operations

manpages/mvwinchnstr.3ncurses.html
mvwinchnstr(3ncurses) - get a string of characters (and attr
These routines return a NULL-terminated array of chtype quantities, starting at the current cursor position in the named window and ending at the right margin o

manpages/msiexec.1.html
msiexec(1) - Wine MSI Installer (Commands - Linux man page)
msiexec is the Wine MSI installer, which is command line compatible with its Microsoft Windows counterpart. INSTALL OPTIONS /i {package|productcode} [property=f

manpages/perlrebackslash.1.html
perlrebackslash(1) - Perl Regular Expression Backslash Seque
The top level documentation about Perl regular expressions is found in perlre. This document describes all backslash and escape sequences. After explaining the

manpages/c++.1.html
c++(1) - GNU project C and C++ compiler - Linux manual page
When you invoke GCC, it normally does preprocessing, compilation, assembly and linking. The overall options allow you to stop this process at an intermediate st

manpages/glMap1d.3gl.html
glMap1d(3gl) - define a one-dimensional evaluator (ManPage)
Evaluators provide a way to use polynomial or rational polynomial mapping to produce vertices, normals, texture coordinates, and colors. The values produced by

manpages/Tk_GetScreenMM.3.html
Tk_GetScreenMM(3) - translate between strings and screen uni
These procedures take as argument a specification of distance on the screen (objPtr or string) and compute the corresponding distance either in integer pixels o

manpages/pts.4.html
pts(4) - pseudoterminal master and slave - Linux man page...
The file /dev/ptmx is a character file with major number 5 and minor number 2, usually of mode 0666 and owner.group of root.root. It is used to create a pseudot

manpages/wadd_wch.3ncurses.html
wadd_wch(3ncurses) - add a complex character and rendition t
The add_wch, wadd_wch, mvadd_wch, and mvwadd_wch functions put the complex character wch into the given window at its current position, which is then advanced.





We can't live, work or learn in freedom unless the software we use is free.