GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> CMX / V2-13-6 > cmx_interface / rhel6-64
#include <string.h>
#include <CMX_interface_prv.h>
Functions | |
signed int | CMX_interfaceCollate (struct _CMX_Instance *inst, struct _CMX_Instance *jnst) |
Collate two instance names. |
CMX_interfaceCollate() returns the collation order of two interace instances. Using the slightly more stringent syntax rules that CMX enforces on interface files, it is possible to define a collation order for any two instances. The collation order is defined to be alphabetical on instance stem name, then increasing by major, minor and patch number.
CVS $Id: CMX_interfaceCollate.c,v 1.2 2010/04/22 23:41:29 apw Exp $
signed int CMX_interfaceCollate | ( | struct _CMX_Instance * | inst, | |
struct _CMX_Instance * | jnst | |||
) |
Collate two instance names.
inst | First instance | |
jnst | Second instance |
-4 | inst < jnst (based on alpabetic ordering) | |
-3 | inst < jnst (based on major version ordering) | |
-2 | inst < jnst (based on minor version ordering) | |
-1 | inst < jnst (based on patch version ordering) | |
0 | inst = jnst | |
1 | inst > jnst (based on patch version ordering) | |
2 | inst > jnst (based on minor version ordering) | |
3 | inst > jnst (based on major version ordering) | |
4 | inst > jnst (based on alpabetic ordering) |
References _CMX_Instance::major, _CMX_Instance::minor, _CMX_Instance::name, and _CMX_Instance::patch.
Referenced by hierarchy(), and interfaceCompare().