Last change
on this file since 1570 was
591,
checked in by rlacroix, 9 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
|
Rev | Line | |
---|
[300] | 1 | #ifndef __XIOS_IMPL_HPP__ |
---|
| 2 | #define __XIOS_IMPL_HPP__ |
---|
| 3 | |
---|
[591] | 4 | #include "xios_spl.hpp" |
---|
[300] | 5 | #include "variable.hpp" |
---|
[352] | 6 | #include "object_template.hpp" |
---|
| 7 | #include "cxios.hpp" |
---|
[300] | 8 | |
---|
[335] | 9 | namespace xios |
---|
[300] | 10 | { |
---|
| 11 | template <typename T> |
---|
| 12 | T CXios::getin(const string& id) |
---|
| 13 | { |
---|
[346] | 14 | return CVariable::get("xios",id)->getData<T>() ; |
---|
[300] | 15 | } |
---|
| 16 | |
---|
[311] | 17 | template <typename T> |
---|
| 18 | T CXios::getin(const string& id, const T& defaultValue) |
---|
| 19 | { |
---|
[346] | 20 | if (CVariable::has("xios",id)) return CVariable::get("xios",id)->getData<T>() ; |
---|
[311] | 21 | else return defaultValue ; |
---|
| 22 | } |
---|
[300] | 23 | |
---|
| 24 | |
---|
| 25 | } |
---|
| 26 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.