source: XIOS/branchs/xios-2.5/src/cxios_impl.hpp @ 2254

Last change on this file since 2254 was 591, checked in by rlacroix, 10 years ago

Remove leftovers from the XMLIO age.

  • Property copyright set to
    Software name : XIOS (Xml I/O Server)
    http://forge.ipsl.jussieu.fr/ioserver
    Creation date : January 2009
    Licence : CeCCIL version2
    see license file in root directory : Licence_CeCILL_V2-en.txt
    or http://www.cecill.info/licences/Licence_CeCILL_V2-en.html
    Holder : CEA/LSCE (Laboratoire des Sciences du CLimat et de l'Environnement)
    CNRS/IPSL (Institut Pierre Simon Laplace)
    Project Manager : Yann Meurdesoif
    yann.meurdesoif@cea.fr
File size: 508 bytes
Line 
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
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.