/* * 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_DATATYPECODE_H_ #define PROTOGEN_DATATYPECODE_H_ #pragma interface #include /* * CODE * * DataTypeCode(derived) -- data type */ class DataTypeCode : public LinearCode { public: enum Value { invalid = LinearCode::invalid, not_present = LinearCode::not_present, null = LinearCode::null, first = LinearCode::first, Add = first + 0, ADval = first + 0,//address CodedEle = first + 1, CEval = first + 1,//coded element CodedEleWithForValue = first + 2, CFval = first + 2,//coded element with formatted value ComIdWChkDigit = first + 3, CKval = first + 3,//composite id w/chk digit Com = first + 4, CMval = first + 4,//composite ComIdAndName = first + 5, CNval = first + 5,//composite id and name ComQuaUnits = first + 6, CQval = first + 6,//composite quantity/units Date = first + 7, DTval = first + 7,//date ForText = first + 8, FTval = first + 8,//formatted text CodedValue = first + 9, IDval = first + 9,//coded value Money = first + 10, MOval = first + 10,//money Num = first + 11, NMval = first + 11,//numeric PerSonName = first + 12, PNval = first + 12,//person name RefPoi = first + 13, RPval = first + 13,//reference pointer SetId = first + 14, SIval = first + 14,//set id Str = first + 15, STval = first + 15,//string Time = first + 16, TMval = first + 16,//time TelNum = first + 17, TNval = first + 17,//telephone number QuaTim = first + 18, TQval = first + 18,//quantity/timing TimeStamp = first + 19, TSval = first + 19,//time stamp Text = first + 20, TXval = first + 20,//text SenNameOrId = first + 21, ZAval = first + 21,//sender name or id ErrorCodeAndLoc = first + 22, ZEval = first + 22,//error code and location InsSpeId = first + 23, ZIval = first + 23,//instrument specimen id PatLoc = first + 24, ZLval = first + 24,//patient location MesIdAndEventCode = first + 25, ZMval = first + 25,//message id and event code SpeDes = first + 26, ZSval = first + 26,//specimen descriptor UniTestId = first + 27, ZTval = first + 27,//universal test id last = 27, size = last - first + 1 }; DataTypeCode(); DataTypeCode(Value val); DataTypeCode(const char *s); operator Value () const; private: static const char *_table[size]; }; inline DataTypeCode::DataTypeCode() : LinearCode(_table,(size_t)size) {} inline DataTypeCode::DataTypeCode(Value val) : LinearCode((int)val,_table,(size_t)size) {} inline DataTypeCode::DataTypeCode(const char *s) : LinearCode(s,_table,(size_t)size) {} inline DataTypeCode::operator DataTypeCode::Value () const { return (Value)(LinearCode::operator int()); } #endif /* ! PROTOGEN_DATATYPECODE_H_ */