New URL for NEMO forge!   http://forge.nemo-ocean.eu

Since March 2022 along with NEMO 4.2 release, the code development moved to a self-hosted GitLab.
This present forge is now archived and remained online for history.
cxios_impl.hpp in vendors/XIOS/current/src – NEMO

source: vendors/XIOS/current/src/cxios_impl.hpp @ 3428

Last change on this file since 3428 was 3428, checked in by rblod, 12 years ago

importing initial XIOS vendor drop

File size: 515 bytes
Line 
1#ifndef __XIOS_IMPL_HPP__
2#define __XIOS_IMPL_HPP__
3
4#include "xmlioserver_spl.hpp"
5#include "variable.hpp"
6#include "object_template.hpp"
7#include "cxios.hpp"
8
9namespace 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
Note: See TracBrowser for help on using the repository browser.