/* * 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 ASTM_PARAMETERTYPECODE_H_ #define ASTM_PARAMETERTYPECODE_H_ #pragma interface #include /* * CODE * * ParaMeterTypeCode(user_defined) -- parameter type */ class ParaMeterTypeCode : public LinearCode { public: enum Value { invalid = LinearCode::invalid, not_present = LinearCode::not_present, null = LinearCode::null, first = LinearCode::first, Cal = first + 0, Cval = first + 0,//calculated Def = first + 1, Dval = first + 1,//default Est = first + 2, Eval = first + 2,//estimated Input = first + 3, Ival = first + 3,//input Mea = first + 4, Mval = first + 4,//measured Und = first + 5, _val = first + 5,//undefined CalHigh = first + 6, HIGHval = first + 6,//calibration high CalLow = first + 7, LOWval = first + 7,//calibration low CalDriftHigh = first + 8, DRIFTHval = first + 8,//calibration drift high CalDriftLow = first + 9, DRIFTLval = first + 9,//calibration drift low CalStatus = first + 10, STATUSval = first + 10,//calibration status CalSen = first + 11, SENSval = first + 11,//calibration sensitivity CalZero = first + 12, ZEROval = first + 12,//calibration zero Gen = first + 13, _0val = first + 13,//general Flush = first + 14, _1val = first + 14,//flush MeaMent = first + 15, _2val = first + 15,//measure-ment Mai = first + 16, _3val = first + 16,//maintenance CaliBra = first + 17, _4val = first + 17,//cali-bration ManCal = first + 18, _5val = first + 18,//manual calibration QcMea = first + 19, _6val = first + 19,//qc measurement HbfDet = first + 20, _7val = first + 20,//hbf determination last = 20, size = last - first + 1 }; ParaMeterTypeCode(); ParaMeterTypeCode(Value val); ParaMeterTypeCode(const char *s); operator Value () const; private: static const char *_table[size]; }; inline ParaMeterTypeCode::ParaMeterTypeCode() : LinearCode(_table,(size_t)size) {} inline ParaMeterTypeCode::ParaMeterTypeCode(Value val) : LinearCode((int)val,_table,(size_t)size) {} inline ParaMeterTypeCode::ParaMeterTypeCode(const char *s) : LinearCode(s,_table,(size_t)size) {} inline ParaMeterTypeCode::operator ParaMeterTypeCode::Value () const { return (Value)(LinearCode::operator int()); } #endif /* ! ASTM_PARAMETERTYPECODE_H_ */