/*---------------------------------------------------------------------------- | Filename: sidef.h | | | Dates according to ISO 8601 yyyy-mm-dd ----------------------------------------------------------------------------*/ #ifndef _sidef_h #define _sidef_h static char sidef_h[] = "$Header: /home/CVS_ARCHIVE/tern/ats/include/FLPdef_t.h,v 1.19 2000/08/21 22:59:19 bergur Exp $"; /*---------------------------------------------------------------------------- | Include standard header files ----------------------------------------------------------------------------*/ #include #include #include /*---------------------------------------------------------------------------- | Include local header files ----------------------------------------------------------------------------*/ /*---------------------------------------------------------------------------- | Constants, typedefs ----------------------------------------------------------------------------*/ typedef struct { int fieldNumber; string data; } atsField; typedef vector atsMessage_t; class fplProfile_t { public: atsMessage_t atsMessage; }; /*************************************************** * sidef.h ****************************************************/ /*---------------------------------------------------------------------------- | Global variable declarations ----------------------------------------------------------------------------*/ /*---------------------------------------------------------------------------- | Public functions declarations ----------------------------------------------------------------------------*/ #endif /* _sidef_h */ /* $Header: /home/CVS_ARCHIVE/tern/ats/libs/flp/fpl.c,v 1.8 2000/08/21 22:59:21 bergur Exp $ */ /* this file belongs with fpl_lexer.l */ int RouteField2pos(fplProfile_t* p, int ats_index) { if (ats_index < 0 || ats_index >= p->atsMessage.size()) return 1; atsField field = p->atsMessage.list[ats_index ]; return 0; }