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

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

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

Initial value:
00001 """\
00002 """

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

Initial value:
00001 """\
00002 // enum corba -> local
00003 inline bool
00004 corba_to_local(const [corba.name_fq]& _from,
00005                [local.name_fq]& _to)
00006 {
00007   _to = [local.name_fq]((long)_from);
00008   return true;
00009 }
00010 
00011 // enum local -> corba
00012 inline bool
00013 local_to_corba(const [local.name_fq]& _from,
00014                [corba.name_fq]& _to)
00015 {
00016   _to = [corba.name_fq]((long)_from);
00017   return true;
00018 }
00019 
00020 """

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

Initial value:
00001 """\
00002 // exception corba -> local
00003 bool
00004 corba_to_local(const [corba.name_fq]& _from,
00005                [local.name_fq]& _to)
00006 {
00007 [for mem in members]
00008   if (!corba_to_local(_from.[mem.corba.member_name],
00009                       _to.[mem.local.member_name]))
00010      return false;
00011 [endfor]
00012   return true;
00013 }
00014 
00015 // exception local -> corba
00016 bool
00017 local_to_corba(const [local.name_fq]& _from,
00018                [corba.name_fq]& _to)
00019 {
00020 [for mem in members]
00021   if (!local_to_corba(_from.[mem.local.member_name],
00022                       _to.[mem.corba.member_name]))
00023      return false;
00024 [endfor]
00025   return true;
00026 }
00027 
00028 """

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

Initial value:
00001 """\
00002 // exxception corba -> local
00003 bool
00004 corba_to_local(const [local.name_fq]& _from,
00005                [corba.name_fq]& _to);
00006 
00007 // exception local -> corba
00008 bool
00009 corba_to_local(const [corba.name_fq]& _from,
00010                [local.name_fq]& _to);
00011 
00012 """

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

Initial value:
00001 """\
00002 // corba object -> local object
00003 bool
00004 corba_to_local([corba.name_fq]_ptr _from,
00005                [local.iface_name_fq]* _to)
00006 {
00007   doil::LocalBase* lobj;
00008   lobj = doil::CORBA::CORBAManager::instance().toLocal((::CORBA::Object_ptr&)_from);
00009   if (lobj == NULL) return false;
00010   _to = dynamic_cast< [local.iface_name_fq]* >(lobj);
00011   if (_to == NULL) return false;
00012   return true;
00013 }
00014 
00015 // local object -> corba object
00016 bool
00017 local_to_corba([local.iface_name_fq]* _from,
00018                [corba.name_fq]_ptr _to)
00019 {
00020   CORBA::Object_ptr obj;
00021   obj = doil::CORBA::CORBAManager::instance().toReference((doil::LocalBase*)_from);
00022   _to = [corba.name_fq]::_narrow(obj);
00023   if (CORBA::is_nil(_to)) return false;
00024   return true;
00025 }
00026 
00027 """

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

Initial value:
00001 """\
00002 // corba object -> local object
00003 bool
00004 corba_to_local([corba.name_fq]_ptr _from,
00005                [local.iface_name_fq]* _to);
00006 
00007 // local object -> corba object
00008 bool
00009 local_to_corba([local.iface_name_fq]* _from,
00010                [corba.name_fq]_ptr _to);
00011 
00012 """

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

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

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

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

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

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

Initial value:
00001 """\
00002 // struct corba -> local
00003 bool
00004 corba_to_local(const [corba.name_fq]& _from,
00005                [local.name_fq]& _to);
00006 
00007 // struct local -> corba
00008 bool
00009 local_to_corba(const [local.name_fq]& _from,
00010                [corba.name_fq]& _to);
00011 
00012 """

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

Initial value:
00001 """\
00002 // -*- C++ -*-
00003 /*!
00004  * @file TypeConversion.h
00005  * @brief doil-CORBA type conversion
00006  * @date $Date$
00007  * @author This file was automatically generated from [idl_fname] 
00008  *         by omniidl/doil backend
00009  *
00010  * $Id$
00011  */
00012 
00013 #include <doil/corba/BasicTypeConversion.h>
00014 #include <[typeconv_h_path]>
00015 #include <doil/corba/SeqTypeConversion.h>
00016 #include <doil/corba/CORBAManager.h>
00017 
00018 [for node in tree]
00019 [if node.corba.decl_type is "interface"]
00020 #include <[node.local.iface_h_path]>
00021 [endif]
00022 [endfor]
00023 
00024 [for impl in implementations]
00025 [impl]
00026 [endfor]
00027 
00028 // end of TypeConversion
00029 
00030 """

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

Initial value:
00001 """\
00002 // -*- C++ -*-
00003 /*!
00004  * @file TypeConversion.h
00005  * @brief doil-CORBA type conversion
00006  * @date $Date$
00007  * @author This file was automatically generated from [idl_fname] 
00008  *         by omniidl/doil backend
00009  *
00010  * $Id$
00011  */
00012 
00013 #ifndef [typeconv_include_guard] 
00014 #define [typeconv_include_guard] 
00015 
00016 //
00017 [for inc in include_h]
00018 #include <[inc]>
00019 [endfor]
00020 
00021 #include <[types_h_path]>
00022 
00023 [for decl in declarations]
00024 [decl]
00025 [endfor]
00026 
00027 #endif // [typeconv_include_guard]
00028 
00029 """

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

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

Initial value:
00001 """\
00002 [if corba.tk is "tk_alias"][elif corba.tk is "tk_string"][elif corba.tk is "tk_long"][else]
00003 // typedef corba -> local : [corba.tk] 
00004 bool
00005 corba_to_local(const [corba.derived_type_fq]& _from,
00006                [local.derived_type_fq]& _to);
00007 
00008 // typedef local -> corba : [corba.tk] 
00009 bool
00010 local_to_corba(const [local.derived_type_fq]& _from,
00011                [corba.derived_type_fq]& _to);
00012 
00013 [endif]
00014 """

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

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

Initial value:
00001 """\
00002 // union corba -> local
00003 bool
00004 corba_to_local(const [local.name_fq]& _from,
00005                [corba.name_fq]& _to);
00006 
00007 // union local -> corba
00008 bool
00009 corba_to_local(const [corba.name_fq]& _from,
00010                [local.name_fq]& _to);
00011 
00012 """

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



openrtm_aist
Author(s): Noriaki Ando
autogenerated on Sat Jun 8 2019 18:49:11