libSBML C++ API  5.20.4
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
UnitKind.c File Reference

SBML UnitKind enumeration. More...

Include dependency graph for UnitKind.c:

Functions

int UnitKind_equals (UnitKind_t uk1, UnitKind_t uk2)
 
UnitKind_t UnitKind_forName (const char *name)
 
int UnitKind_isValidUnitKindString (const char *str, unsigned int level, unsigned int version)
 
const char * UnitKind_toString (UnitKind_t uk)
 

Variables

const char * UNIT_KIND_STRINGS []
 

Detailed Description

SBML UnitKind enumeration.

Author
Ben Bornstein

Function Documentation

◆ UnitKind_equals()

int UnitKind_equals ( UnitKind_t  uk1,
UnitKind_t  uk2 
)

Tests for logical equality between two given UNIT_KIND_ code values.

◆ UnitKind_forName()

UnitKind_t UnitKind_forName ( const char *  name)

Converts a text string naming a kind of unit to its corresponding libSBML UNIT_KIND_ constant/enumeration value.

◆ UnitKind_isValidUnitKindString()

int UnitKind_isValidUnitKindString ( const char *  str,
unsigned int  level,
unsigned int  version 
)

Predicate for testing whether a given string corresponds to a predefined libSBML unit code.

◆ UnitKind_toString()

const char * UnitKind_toString ( UnitKind_t  uk)

Converts a unit code to a text string equivalent.

Variable Documentation

◆ UNIT_KIND_STRINGS

const char* UNIT_KIND_STRINGS[]