rtxGenValueType.h File Reference

  • Implementation of a generic value type for encoding and decoding values without schema.
More...

#include "rtxsrc/rtxContext.h"

Go to the source code of this file.

Functions

EXTERNRT int rtxGenValueCompare (OSCTXT *pctxt, const OSRTGenValue *pvalue1, const OSRTGenValue *pvalue2)
 This function compares two generic values for equality.
EXTERNRT const char * rtxGenValueGetIdent (OSRTDataType id)
 This function returns a textual identifier for the given enumerated value type.

Detailed Description

  • Implementation of a generic value type for encoding and decoding values without schema.

Definition in file rtxGenValueType.h.


Function Documentation

EXTERNRT int rtxGenValueCompare ( OSCTXT pctxt,
const OSRTGenValue *  pvalue1,
const OSRTGenValue *  pvalue2 
)

This function compares two generic values for equality.

Information on values in the structure that are not equal are returned on the error list within the context.

Parameters:
pctxt Pointer to a context structure.
pvalue1 Pointer to first value to compare.
pvalue2 Pointer to second value to compare.
Returns:
Status of the comparison operation. A negative value indicates the values are not equal. Printing the error results using rtxErrPrint or equivalent will show the specific items that don't match.
EXTERNRT const char* rtxGenValueGetIdent ( OSRTDataType  id  ) 

This function returns a textual identifier for the given enumerated value type.

Parameters:
id Enumerated data type identifier (OSRTDataType)
Returns:
Textual identifier for id or '<unknown>'