/* * 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 HL7_VERIDCODE_H_ #define HL7_VERIDCODE_H_ #pragma interface #include /* * CODE * * VerIdCode(hl7_standard) -- version id */ class VerIdCode : public LinearCode { public: enum Value { invalid = LinearCode::invalid, not_present = LinearCode::not_present, null = LinearCode::null, first = LinearCode::first, Rel20Sep1988 = first + 0, _2_0val = first + 0,//release 2.0 september 1988 Demo20Oct1988 = first + 1, _2_0Dval = first + 1,//demo 2.0 october 1988 Rel21March1990 = first + 2, _2_1val = first + 2,//release 2.1 march 1990 Rel22Dec1994 = first + 3, _2_2val = first + 3,//release 2.2 december 1994 last = 3, size = last - first + 1 }; VerIdCode(); VerIdCode(Value val); VerIdCode(const char *s); operator Value () const; private: static const char *_table[size]; }; inline VerIdCode::VerIdCode() : LinearCode(_table,(size_t)size) {} inline VerIdCode::VerIdCode(Value val) : LinearCode((int)val,_table,(size_t)size) {} inline VerIdCode::VerIdCode(const char *s) : LinearCode(s,_table,(size_t)size) {} inline VerIdCode::operator VerIdCode::Value () const { return (Value)(LinearCode::operator int()); } #endif /* ! HL7_VERIDCODE_H_ */