MED fichier
MEDversionedApi3.hxx
Aller à la documentation de ce fichier.
1/* This file is part of MED.
2 *
3 * COPYRIGHT (C) 1999 - 2020 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
27typedef std::string keyType;
28
29class MEDC_EXPORT MED_VERSIONED_API3 : public std::map<keyType,
30 MedFuncType >
31{
32public :
34 MedFuncType operator[]( const keyType & c ) const;
36
37private:
41 //MED_VERSIONED_API3& operator =(const MED_VERSIONED_API3 &){};
43};
44
45
46extern "C" MedFuncType
47getVersionedApi3(const char * const keycharpart,
48 const char * const keynumpart);
49
50extern "C" void MEDC_EXPORT f77Api3IsSet(void * obj);
51
52#endif
MedFuncType getVersionedApi3(const char *const keycharpart, const char *const keynumpart)
std::string keyType
void MEDC_EXPORT f77Api3IsSet(void *obj)
MedFuncType operator[](const keyType &c) const
static MED_VERSIONED_API3 & Instance()
MED_VERSIONED_API3(const MED_VERSIONED_API3 &)
#define MEDC_EXPORT
void(* MedFuncType)(int,...)
Definition med_misc.h:29