| 1 | #ifndef _cxxmultipleconstraints_h_ |
| 2 | #define _cxxmultipleconstraints_h_ |
| 3 | |
| 4 | |
| 5 | #include "asn-incl.h" |
| 6 | #include "asn1module.h" |
| 7 | #include "snacc.h" |
| 8 | #include "limits.h" |
| 9 | #include "rules.h" |
| 10 | #include "snacc-util.h" |
| 11 | #include "str-util.h" |
| 12 | |
| 13 | typedef struct SizeConstraint{ |
| 14 | long lowerBound; |
| 15 | long upperBound; |
| 16 | int upperBoundExists; |
| 17 | }SizeConstraint; |
| 18 | |
| 19 | typedef SizeConstraint ValueRange; |
| 20 | |
| 21 | typedef struct PermittedAlphabet{ |
| 22 | unsigned char* ucApha; |
| 23 | }PermittedAlphabet; |
| 24 | |
| 25 | char* PrintCxxPermittedAlphabetHandler PROTO(( AsnListNode* currAlpha, unsigned char* cPermittedAlphabet, int *iAlphasize)); |
| 26 | |
| 27 | int SizeConstraint_LISTS PROTO((FILE* hdr, FILE* src, SizeConstraint* scList, int iSCPresent, AsnListNode* curr, Subtype* currS_type)); |
| 28 | |
| 29 | int PrintCxxMultiConstraintOrHandler PROTO((FILE* hdr, FILE* src, char* definedName, NamedType* e, int i)); |
| 30 | |
| 31 | int ValueRange_LISTS PROTO((FILE* hdr, FILE* src, ValueRange* vrList, int iVRPresent, AsnListNode* curr, Subtype* currS_type)); |
| 32 | |
| 33 | int BasicTypeString_LISTS PROTO((FILE* hdr, FILE* src, SizeConstraint* scList, int iSCPresent, AsnListNode* curr, Subtype* currS_type)); |
| 34 | |
| 35 | char* FindPermittedAlpha PROTO((AsnListNode* curr, unsigned char* cPermittedAlphabet, int *iAlphasize)); |
| 36 | |
| 37 | #endif |
| 38 | |
| 39 |