/* * This file is automatically Generated by ProtoGen r1.3. * Do not edit it. * * Copyright (c) 1995, 1996 Gunther Schadow. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ #ifndef PROTOGEN_MESTYPECODE_H_ #define PROTOGEN_MESTYPECODE_H_ #pragma interface #include /* * CODE * * MesTypeCode(derived) -- message type */ class MesTypeCode : public LinearCode { public: enum Value { invalid = LinearCode::invalid, not_present = LinearCode::not_present, null = LinearCode::null, first = LinearCode::first, GenAck = first + 0, ACKval = first + 0,//general acknowledgement AdtRes = first + 1, ADRval = first + 1,//adt response AdtMes = first + 2, ADTval = first + 2,//adt message AstmResMes = first + 3, ASTMval = first + 3,//astm result message AddChaBilAcc = first + 4, BARval = first + 4,//add/change billing account DetFinTransAct = first + 5, DFTval = first + 5,//detail financial transaction DisRes = first + 6, DSRval = first + 6,//display response DelAck = first + 7, MCFval = first + 7,//delayed acknowledgement MasFileDelAck = first + 8, MFDval = first + 8,//master file delayed acknowledgement MasFileAck = first + 9, MFKval = first + 9,//master file acknowledgement MasFileNot = first + 10, MFNval = first + 10,//master file notification MasFileRes = first + 11, MFRval = first + 11,//master file response NetManData = first + 12, NMDval = first + 12,//network management data NetManQuery = first + 13, NMQval = first + 13,//network management query NetManRes = first + 14, NMRval = first + 14,//network management response ObsResRecRes = first + 15, ORFval = first + 15,//observ. result/record response OrderMes = first + 16, ORMval = first + 16,//order message OrderAckMes = first + 17, ORRval = first + 17,//order acknowledgement message ObsResUns = first + 18, ORUval = first + 18,//observ result/unsolicited Query = first + 19, QRYval = first + 19,//query PhaAdmMes = first + 20, RASval = first + 20,//pharmacy administration message PhaEncOrderMes = first + 21, RDEval = first + 21,//pharmacy encoded order message PhaDisMes = first + 22, RDSval = first + 22,//pharmacy dispense message PhaGiveMes = first + 23, RGVval = first + 23,//pharmacy give message PhaAdmAck = first + 24, RRAval = first + 24,//pharmacy administration acknowledgement PhaDisAck = first + 25, RRDval = first + 25,//pharmacy dispense acknowledgement PhaEncOrdrAck = first + 26, RREval = first + 26,//pharmacy encoded ordr acknowledgement PhaGiveAck = first + 27, RRGval = first + 27,//pharmacy give acknowledgement UnsDisMes = first + 28, UDMval = first + 28,//unsolicited display message last = 28, size = last - first + 1 }; MesTypeCode(); MesTypeCode(Value val); MesTypeCode(const char *s); operator Value () const; private: static const char *_table[size]; }; inline MesTypeCode::MesTypeCode() : LinearCode(_table,(size_t)size) {} inline MesTypeCode::MesTypeCode(Value val) : LinearCode((int)val,_table,(size_t)size) {} inline MesTypeCode::MesTypeCode(const char *s) : LinearCode(s,_table,(size_t)size) {} inline MesTypeCode::operator MesTypeCode::Value () const { return (Value)(LinearCode::operator int()); } #endif /* ! PROTOGEN_MESTYPECODE_H_ */