[325] | 1 | /* ************************************************************************** * |
---|
[581] | 2 | * Interface auto generated - do not modify * |
---|
[325] | 3 | * ************************************************************************** */ |
---|
| 4 | |
---|
| 5 | #include <boost/multi_array.hpp> |
---|
| 6 | #include <boost/shared_ptr.hpp> |
---|
[591] | 7 | #include "xios.hpp" |
---|
[352] | 8 | #include "attribute_template.hpp" |
---|
| 9 | #include "object_template.hpp" |
---|
| 10 | #include "group_template.hpp" |
---|
[325] | 11 | #include "icutil.hpp" |
---|
[532] | 12 | #include "icdate.hpp" |
---|
[347] | 13 | #include "timer.hpp" |
---|
[369] | 14 | #include "node_type.hpp" |
---|
[325] | 15 | |
---|
| 16 | extern "C" |
---|
| 17 | { |
---|
[581] | 18 | typedef xios::CContext* context_Ptr; |
---|
| 19 | |
---|
[325] | 20 | void cxios_set_context_output_dir(context_Ptr context_hdl, const char * output_dir, int output_dir_size) |
---|
| 21 | { |
---|
| 22 | std::string output_dir_str; |
---|
[581] | 23 | if (!cstr2string(output_dir, output_dir_size, output_dir_str)) return; |
---|
| 24 | CTimer::get("XIOS").resume(); |
---|
[325] | 25 | context_hdl->output_dir.setValue(output_dir_str); |
---|
[581] | 26 | CTimer::get("XIOS").suspend(); |
---|
[325] | 27 | } |
---|
[581] | 28 | |
---|
[325] | 29 | void cxios_get_context_output_dir(context_Ptr context_hdl, char * output_dir, int output_dir_size) |
---|
| 30 | { |
---|
[581] | 31 | CTimer::get("XIOS").resume(); |
---|
| 32 | if (!string_copy(context_hdl->output_dir.getInheritedValue(), output_dir, output_dir_size)) |
---|
| 33 | ERROR("void cxios_get_context_output_dir(context_Ptr context_hdl, char * output_dir, int output_dir_size)", << "Input string is too short"); |
---|
| 34 | CTimer::get("XIOS").suspend(); |
---|
[325] | 35 | } |
---|
[581] | 36 | |
---|
| 37 | bool cxios_is_defined_context_output_dir(context_Ptr context_hdl) |
---|
[432] | 38 | { |
---|
| 39 | CTimer::get("XIOS").resume(); |
---|
[581] | 40 | bool isDefined = context_hdl->output_dir.hasInheritedValue(); |
---|
[432] | 41 | CTimer::get("XIOS").suspend(); |
---|
[581] | 42 | return isDefined; |
---|
[432] | 43 | } |
---|
[325] | 44 | } |
---|