GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > CMX / V2-10-0

Constituent: cmx_interface     Tag: linux-gcc


Interface   Data Structures   File List   Data Fields   Globals  

CMX_interfaceCollate.c File Reference

Return the collation order of two interface instances. More...

#include <string.h>
#include "CMX_interface_prv.h"

Include dependency graph for CMX_interfaceCollate.c:


Functions

signed int CMX_interfaceCollate (struct _CMX_Instance *inst, struct _CMX_Instance *jnst)
 Collate two instance names.

Detailed Description

Return the collation order of two interface instances.

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.1 2002/05/22 02:56:57 apw Exp $

Function Documentation

signed int CMX_interfaceCollate struct _CMX_Instance inst,
struct _CMX_Instance jnst
 

Collate two instance names.

Parameters:
inst First instance
jnst Second instance
CMX_interfaceCollate() implements a collation order for interface instance names. The order is alphabetic by stem name, then increasing by major, minor and patch number.

Return values:
-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)


Generated on Wed Feb 13 01:19:43 2008 by  doxygen 1.4.4