fileformat/formatStrings.h
Go to the documentation of this file.
00001 /* Copyright 2009 Andreas Gölzer
00002 
00003  This file is part of readESM.
00004 
00005  readESM is free software: you can redistribute it and/or modify it under the
00006  terms of the GNU General Public License as published by the Free Software
00007  Foundation, either version 3 of the License, or (at your option) any later
00008  version.
00009 
00010  readESM is distributed in the hope that it will be useful, but WITHOUT ANY
00011  WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
00012  FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
00013 
00014  You should have received a copy of the GNU General Public License along with
00015  readESM.  If not, see <http://www.gnu.org/licenses/>. */
00016 
00017 #ifndef FORMATSTRINGS_H
00018 #define FORMATSTRINGS_H
00019 
00020 #include <QtCore/QCoreApplication>
00021 #include <QtCore/QString>
00022 
00023 class formatStrings {
00024         Q_DECLARE_TR_FUNCTIONS(formatStrings)
00025 private:
00026         static QString previous(const QString& now, const QString& past);
00027         static QString previous(const QString& now, const QString& past, const QString& ancientpast);
00028 public:
00030         static QString eventType(unsigned char etype);
00031 
00033         static QString eventRecordPurpose(unsigned char etype);
00034 
00036         static QString nationNumeric(unsigned char country);
00037 
00039         static QString regionNumeric(unsigned char region);
00040 
00041         static QString specificCondition(unsigned char scond);
00042 
00044         static QString calibrationPurpose(unsigned char cpurp);
00045 
00047         static QString controlType(unsigned char ctype);
00048 
00050         static QString equipmentType(unsigned char value);
00051 
00052         static QString manufacturerCode(unsigned char code);
00053 
00054         static QString dailyWorkPeriod(unsigned char value);
00055 };
00056 #endif