mirror of https://github.com/lianthony/NT4.0
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
59 lines
1.1 KiB
59 lines
1.1 KiB
|
|
/*---------------------------------------------------------------------------------*/
|
|
/* These are definitions of main validation structures */
|
|
/*---------------------------------------------------------------------------------*/
|
|
|
|
typedef struct TierNode_
|
|
{
|
|
BYTE NodeClass;
|
|
BYTE NodeGroup;
|
|
BYTE NodeCode;
|
|
BYTE LowerCount;
|
|
BYTE CurrentCount;
|
|
BYTE UpperCount;
|
|
}
|
|
TierNode;
|
|
|
|
|
|
typedef struct MajorGraph_
|
|
{
|
|
BYTE TierType;
|
|
BYTE NumberOfNodes;
|
|
BYTE Direction;
|
|
BYTE Transition;
|
|
|
|
TierNode * TierPointer;
|
|
}
|
|
MajorGraph;
|
|
|
|
|
|
typedef struct NODE_
|
|
{
|
|
BYTE NodeGroup;
|
|
BYTE NodeCode;
|
|
BYTE NodeFlags;
|
|
BYTE NodeCount;
|
|
}
|
|
NODE;
|
|
|
|
|
|
typedef struct MinorGraph_
|
|
{
|
|
BYTE NodeClass;
|
|
BYTE NodeGroup;
|
|
BYTE NodeCode;
|
|
BYTE NodeFlags;
|
|
BYTE NumberOfSubordinateNodes;
|
|
NODE * SubordinateNodes;
|
|
}
|
|
MinorGraph;
|
|
|
|
|
|
#define Ascend 'a'
|
|
#define Descend 'd'
|
|
|
|
#define TierExclusive 'e'
|
|
#define TierInclusive 'i'
|
|
|
|
#define Optional 0x80
|
|
#define Required 0x40
|