source: XIOS/dev/dev_olga/src/interface/c_attr/iccontext_attr.cpp @ 1636

Last change on this file since 1636 was 1636, checked in by oabramkina, 5 years ago

Backporting r1626 to dev before merging it to trunk.

  • 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
  • Property svn:eol-style set to native
File size: 1.5 KB
Line 
1/* ************************************************************************** *
2 *               Interface auto generated - do not modify                     *
3 * ************************************************************************** */
4
5#include <boost/multi_array.hpp>
6#include "xios.hpp"
7#include "attribute_template.hpp"
8#include "object_template.hpp"
9#include "group_template.hpp"
10#include "icutil.hpp"
11#include "icdate.hpp"
12#include "timer.hpp"
13#include "node_type.hpp"
14
15extern "C"
16{
17  typedef xios::CContext* context_Ptr;
18
19  void cxios_set_context_output_dir(context_Ptr context_hdl, const char * output_dir, int output_dir_size)
20  {
21    std::string output_dir_str;
22    if (!cstr2string(output_dir, output_dir_size, output_dir_str)) return;
23    CTimer::get("XIOS").resume();
24    context_hdl->output_dir.setValue(output_dir_str);
25    CTimer::get("XIOS").suspend();
26  }
27
28  void cxios_get_context_output_dir(context_Ptr context_hdl, char * output_dir, int output_dir_size)
29  {
30    CTimer::get("XIOS").resume();
31    if (!string_copy(context_hdl->output_dir.getInheritedValue(), output_dir, output_dir_size))
32      ERROR("void cxios_get_context_output_dir(context_Ptr context_hdl, char * output_dir, int output_dir_size)", << "Input string is too short");
33    CTimer::get("XIOS").suspend();
34  }
35
36  bool cxios_is_defined_context_output_dir(context_Ptr context_hdl)
37  {
38     CTimer::get("XIOS").resume();
39     bool isDefined = context_hdl->output_dir.hasInheritedValue();
40     CTimer::get("XIOS").suspend();
41     return isDefined;
42  }
43}
Note: See TracBrowser for help on using the repository browser.