source:
vendors/XIOS/current/src/cxios_impl.hpp
@
3408
Last change on this file since 3408 was 3408, checked in by rblod, 12 years ago | |
---|---|
|
|
File size: 499 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_impl.hpp" |
7 | |
8 | namespace xios |
9 | { |
10 | template <typename T> |
11 | T CXios::getin(const string& id) |
12 | { |
13 | return CVariable::get("xios",id)->getData<T>() ; |
14 | } |
15 | |
16 | template <typename T> |
17 | T CXios::getin(const string& id, const T& defaultValue) |
18 | { |
19 | if (CVariable::has("xios",id)) return CVariable::get("xios",id)->getData<T>() ; |
20 | else return defaultValue ; |
21 | } |
22 | |
23 | |
24 | } |
25 | #endif |
Note: See TracBrowser
for help on using the repository browser.