MED fichier

MEDfieldChecked.hxx
Aller à la documentation de ce fichier.
1 /* This file is part of MED.
2 *
3 * COPYRIGHT (C) 1999 - 2021 EDF R&D, CEA/DEN
4 * MED is free software: you can redistribute it and/or modify
5 * it under the terms of the GNU Lesser General Public License as published by
6 * the Free Software Foundation, either version 3 of the License, or
7 * (at your option) any later version.
8 *
9 * MED is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU Lesser General Public License for more details.
13 *
14 * You should have received a copy of the GNU Lesser General Public License
15 * along with MED. If not, see <http://www.gnu.org/licenses/>.
16 */
17 #ifndef MED_FIELD_CHECKED_HXX
18 #define MED_FIELD_CHECKED_HXX
19
20 #include <med.h>
21 #include <map>
22 #include <string>
23
24
25 struct keyType:std::pair< unsigned long, std::string >{};
26
27 typedef unsigned long fileNo;
28 typedef med_bool valueType;
29
30 class MED_FIELD_CHECKED : public std::map< keyType, valueType >
31 {
32 public:
33 static MED_FIELD_CHECKED& Instance();
34
35 private :
36 MED_FIELD_CHECKED(){};
37 MED_FIELD_CHECKED(const MED_FIELD_CHECKED &){};
38 ~MED_FIELD_CHECKED();
39
40 };
41
42
43 #endif
fileNo
unsigned long fileNo
Definition: MEDfieldChecked.hxx:27
MED_FIELD_CHECKED::Instance
static MED_FIELD_CHECKED & Instance()
keyType
Definition: MEDfieldChecked.hxx:25
MED_FIELD_CHECKED::MED_FIELD_CHECKED
MED_FIELD_CHECKED()
Definition: MEDfieldChecked.hxx:36
MED_FIELD_CHECKED::~MED_FIELD_CHECKED
~MED_FIELD_CHECKED()
med.h
med_bool
med_bool
Definition: med.h:260
MED_FIELD_CHECKED::MED_FIELD_CHECKED
MED_FIELD_CHECKED(const MED_FIELD_CHECKED &)
Definition: MEDfieldChecked.hxx:37
MED_FIELD_CHECKED
Definition: MEDfieldChecked.hxx:30
valueType
med_bool valueType
Definition: MEDfieldChecked.hxx:28