MED fichier
MEDversionedApi3.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_VERSIONED_API3_HXX
18 #define MED_VERSIONED_API3_HXX
19 
20 #include <string>
21 #include <map>
22 #include <cassert>
23 #include <cstdarg>
24 
25 #include <med_misc.h>
26 
27 typedef std::string keyType;
28 
29 class MEDC_EXPORT MED_VERSIONED_API3 : public std::map<keyType,
30  MedFuncType >
31 {
32 public :
33  static MED_VERSIONED_API3& Instance();
34  MedFuncType operator[]( const keyType & c ) const;
35  void f77ApiIsSet();
36 
37 private:
41  //MED_VERSIONED_API3& operator =(const MED_VERSIONED_API3 &){};
43 };
44 
45 
46 extern "C" MedFuncType
47 getVersionedApi3(const char * const keycharpart,
48  const char * const keynumpart);
49 
50 extern "C" void MEDC_EXPORT f77Api3IsSet(void * obj);
51 
52 #endif
MEDC_EXPORT
#define MEDC_EXPORT
Definition: medC_win_dll.h:29
MED_VERSIONED_API3
Definition: MEDversionedApi3.hxx:29
keyType
Definition: MEDfieldChecked.hxx:25
MedFuncType
void(* MedFuncType)(int,...)
Definition: med_misc.h:29
med_misc.h
f77Api3IsSet
void MEDC_EXPORT f77Api3IsSet(void *obj)
MED_VERSIONED_API3::_f77ApiIsSet
bool _f77ApiIsSet
Definition: MEDversionedApi3.hxx:38
getVersionedApi3
MedFuncType getVersionedApi3(const char *const keycharpart, const char *const keynumpart)
keyType
std::string keyType
Definition: MEDversionedApi3.hxx:27
MED_VERSIONED_API3::MED_VERSIONED_API3
MED_VERSIONED_API3(const MED_VERSIONED_API3 &)
Definition: MEDversionedApi3.hxx:40