Variables
doil.corba.template Namespace Reference

Variables

string adapter_cpp
 
string adapter_h
 
string enum_conv_cpp
 
string enum_conv_h
 
string exception_conv_cpp
 
string exception_conv_h
 
string object_conv_cpp
 
string object_conv_h
 
string proxy_cpp
 
string proxy_h
 
string servant_cpp
 
string servant_h
 
string struct_conv_cpp
 
string struct_conv_h
 
string typeconv_cpp
 
string typeconv_h
 
string typedef_dec_cpp
 
string typedef_decl_h
 
string union_conv_cpp
 
string union_conv_h
 

Variable Documentation

string doil.corba.template.adapter_cpp

Definition at line 754 of file corba/template.py.

string doil.corba.template.adapter_h

Definition at line 646 of file corba/template.py.

string doil.corba.template.enum_conv_cpp
Initial value:
1 = """\
2 """

Definition at line 275 of file corba/template.py.

string doil.corba.template.enum_conv_h
Initial value:
1 = """\
2 // enum corba -> local
3 inline bool
4 corba_to_local(const [corba.name_fq]& _from,
5  [local.name_fq]& _to)
6 {
7  _to = [local.name_fq]((long)_from);
8  return true;
9 }
10 
11 // enum local -> corba
12 inline bool
13 local_to_corba(const [local.name_fq]& _from,
14  [corba.name_fq]& _to)
15 {
16  _to = [corba.name_fq]((long)_from);
17  return true;
18 }
19 
20 """

Definition at line 252 of file corba/template.py.

string doil.corba.template.exception_conv_cpp
Initial value:
1 = """\
2 // exception corba -> local
3 bool
4 corba_to_local(const [corba.name_fq]& _from,
5  [local.name_fq]& _to)
6 {
7 [for mem in members]
8  if (!corba_to_local(_from.[mem.corba.member_name],
9  _to.[mem.local.member_name]))
10  return false;
11 [endfor]
12  return true;
13 }
14 
15 // exception local -> corba
16 bool
17 local_to_corba(const [local.name_fq]& _from,
18  [corba.name_fq]& _to)
19 {
20 [for mem in members]
21  if (!local_to_corba(_from.[mem.local.member_name],
22  _to.[mem.corba.member_name]))
23  return false;
24 [endfor]
25  return true;
26 }
27 
28 """

Definition at line 290 of file corba/template.py.

string doil.corba.template.exception_conv_h
Initial value:
1 = """\
2 // exxception corba -> local
3 bool
4 corba_to_local(const [local.name_fq]& _from,
5  [corba.name_fq]& _to);
6 
7 // exception local -> corba
8 bool
9 corba_to_local(const [corba.name_fq]& _from,
10  [local.name_fq]& _to);
11 
12 """

Definition at line 278 of file corba/template.py.

string doil.corba.template.object_conv_cpp
Initial value:
1 = """\
2 // corba object -> local object
3 bool
4 corba_to_local([corba.name_fq]_ptr _from,
5  [local.iface_name_fq]* _to)
6 {
7  doil::LocalBase* lobj;
8  lobj = doil::CORBA::CORBAManager::instance().toLocal((::CORBA::Object_ptr&)_from);
9  if (lobj == NULL) return false;
10  _to = dynamic_cast< [local.iface_name_fq]* >(lobj);
11  if (_to == NULL) return false;
12  return true;
13 }
14 
15 // local object -> corba object
16 bool
17 local_to_corba([local.iface_name_fq]* _from,
18  [corba.name_fq]_ptr _to)
19 {
20  CORBA::Object_ptr obj;
21  obj = doil::CORBA::CORBAManager::instance().toReference((doil::LocalBase*)_from);
22  _to = [corba.name_fq]::_narrow(obj);
23  if (CORBA::is_nil(_to)) return false;
24  return true;
25 }
26 
27 """

Definition at line 99 of file corba/template.py.

string doil.corba.template.object_conv_h
Initial value:
1 = """\
2 // corba object -> local object
3 bool
4 corba_to_local([corba.name_fq]_ptr _from,
5  [local.iface_name_fq]* _to);
6 
7 // local object -> corba object
8 bool
9 local_to_corba([local.iface_name_fq]* _from,
10  [corba.name_fq]_ptr _to);
11 
12 """

Definition at line 84 of file corba/template.py.

string doil.corba.template.proxy_cpp

Definition at line 1024 of file corba/template.py.

string doil.corba.template.proxy_h

Definition at line 915 of file corba/template.py.

string doil.corba.template.servant_cpp

Definition at line 499 of file corba/template.py.

string doil.corba.template.servant_h

Definition at line 405 of file corba/template.py.

string doil.corba.template.struct_conv_cpp

Definition at line 143 of file corba/template.py.

string doil.corba.template.struct_conv_h
Initial value:
1 = """\
2 // struct corba -> local
3 bool
4 corba_to_local(const [corba.name_fq]& _from,
5  [local.name_fq]& _to);
6 
7 // struct local -> corba
8 bool
9 local_to_corba(const [local.name_fq]& _from,
10  [corba.name_fq]& _to);
11 
12 """

Definition at line 129 of file corba/template.py.

string doil.corba.template.typeconv_cpp
Initial value:
1 = """\
2 // -*- C++ -*-
3 /*!
4  * @file TypeConversion.h
5  * @brief doil-CORBA type conversion
6  * @date $Date$
7  * @author This file was automatically generated from [idl_fname]
8  * by omniidl/doil backend
9  *
10  * $Id$
11  */
12 
13 #include <doil/corba/BasicTypeConversion.h>
14 #include <[typeconv_h_path]>
15 #include <doil/corba/SeqTypeConversion.h>
16 #include <doil/corba/CORBAManager.h>
17 
18 [for node in tree]
19 [if node.corba.decl_type is "interface"]
20 #include <[node.local.iface_h_path]>
21 [endif]
22 [endfor]
23 
24 [for impl in implementations]
25 [impl]
26 [endfor]
27 
28 // end of TypeConversion
29 
30 """

Definition at line 50 of file corba/template.py.

string doil.corba.template.typeconv_h
Initial value:
1 = """\
2 // -*- C++ -*-
3 /*!
4  * @file TypeConversion.h
5  * @brief doil-CORBA type conversion
6  * @date $Date$
7  * @author This file was automatically generated from [idl_fname]
8  * by omniidl/doil backend
9  *
10  * $Id$
11  */
12 
13 #ifndef [typeconv_include_guard]
14 #define [typeconv_include_guard]
15 
16 //
17 [for inc in include_h]
18 #include <[inc]>
19 [endfor]
20 
21 #include <[types_h_path]>
22 
23 [for decl in declarations]
24 [decl]
25 [endfor]
26 
27 #endif // [typeconv_include_guard]
28 
29 """

Definition at line 21 of file corba/template.py.

string doil.corba.template.typedef_dec_cpp

Definition at line 337 of file corba/template.py.

string doil.corba.template.typedef_decl_h
Initial value:
1 = """\
2 [if corba.tk is "tk_alias"][elif corba.tk is "tk_string"][elif corba.tk is "tk_long"][else]
3 // typedef corba -> local : [corba.tk]
4 bool
5 corba_to_local(const [corba.derived_type_fq]& _from,
6  [local.derived_type_fq]& _to);
7 
8 // typedef local -> corba : [corba.tk]
9 bool
10 local_to_corba(const [local.derived_type_fq]& _from,
11  [corba.derived_type_fq]& _to);
12 
13 [endif]
14 """

Definition at line 321 of file corba/template.py.

string doil.corba.template.union_conv_cpp

Definition at line 199 of file corba/template.py.

string doil.corba.template.union_conv_h
Initial value:
1 = """\
2 // union corba -> local
3 bool
4 corba_to_local(const [local.name_fq]& _from,
5  [corba.name_fq]& _to);
6 
7 // union local -> corba
8 bool
9 corba_to_local(const [corba.name_fq]& _from,
10  [local.name_fq]& _to);
11 
12 """

Definition at line 184 of file corba/template.py.



openrtm_aist
Author(s): Noriaki Ando
autogenerated on Thu Jun 6 2019 19:26:02