XIOS
1.0
Xml I/O Server
Page principale
Espaces de nommage
Classes
Fichiers
Liste des fichiers
Membres de fichier
Tout
Classes
Espaces de nommage
Fichiers
Fonctions
Variables
Définitions de type
Énumérations
Valeurs énumérées
Amis
Macros
cxios_impl.hpp
Aller à la documentation de ce fichier.
1
#ifndef __XIOS_IMPL_HPP__
2
#define __XIOS_IMPL_HPP__
3
4
#include "
xios_spl.hpp
"
5
#include "
variable.hpp
"
6
#include "
object_template.hpp
"
7
#include "
cxios.hpp
"
8
9
namespace
xios
10
{
11
template
<
typename
T>
12
T
CXios::getin
(
const
string
&
id
)
13
{
14
return
CVariable::get
(
"xios"
,
id
)->
getData
<T>() ;
15
}
16
17
template
<
typename
T>
18
T
CXios::getin
(
const
string
&
id
,
const
T& defaultValue)
19
{
20
if
(
CVariable::has
(
"xios"
,
id
))
return
CVariable::get
(
"xios"
,
id
)->
getData
<T>() ;
21
else
return
defaultValue ;
22
}
23
24
25
}
26
#endif
xios::CObjectTemplate< CVariable >::has
static bool has(const string &id)
object_template.hpp
xios_spl.hpp
xios
#define xios(arg)
Definition:
xios_fortran_prefix.hpp:4
cxios.hpp
xios::CObjectTemplate< CVariable >::get
CVariable * get(void)
xios::CVariable::getData
T getData(void) const
Definition:
variable.hpp:101
variable.hpp
xios::CXios::getin
static T getin(const string &id, const T &defaultValue)
Definition:
cxios_impl.hpp:18
src
cxios_impl.hpp
Généré le Vendredi Juin 14 2019 16:00:10 pour XIOS par
1.8.5