-
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* ridlbe/c++11/templates/cli/hdr/ami/interface_amic_traits.erb: * ridlbe/c++11/templates/cli/prx/interface_pre.erb: * ridlbe/c++11/writers/amistubheader.rb: * ridlbe/c++11/writers/amistubsource.rb:
- Loading branch information
1 parent
f265193
commit 70f35d1
Showing
4 changed files
with
25 additions
and
28 deletions.
There are no files selected for viewing
41 changes: 19 additions & 22 deletions
41
ridlbe/c++11/templates/cli/hdr/ami/interface_amic_traits.erb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,24 @@ | ||
|
||
// generated from <%= ridl_template_path %> | ||
namespace IDL | ||
template <typename OStrm_> | ||
struct formatter<<%= amic_scoped_cxxtype %>, OStrm_> | ||
{ | ||
template <typename OStrm_> | ||
struct formatter<<%= amic_scoped_cxxtype %>, OStrm_> | ||
inline OStrm_& operator ()(OStrm_& os_, <%= amic_scoped_cxx_in_type %> val_) | ||
{ | ||
inline OStrm_& operator ()(OStrm_& os_, <%= amic_scoped_cxx_in_type %> val_) | ||
{ | ||
os_ << IDL::traits<TAOX11_CORBA::Object>::_dump (std::move (val_), "<%= formatted_cxxname %>", true); | ||
return os_; | ||
} | ||
}; | ||
|
||
template <typename OStrm_, typename Fmt> | ||
inline OStrm_& operator <<(OStrm_& os, TAOX11_CORBA::amic_traits <<%= scoped_cxxtype %>>::__Writer<Fmt> w) | ||
{ | ||
using writer_t = TAOX11_CORBA::amic_traits <<%= scoped_cxxtype %>>::__Writer<Fmt>; | ||
using formatter_t = typename std::conditional< | ||
std::is_same< | ||
typename writer_t::formatter_t, | ||
std::false_type>::value, | ||
IDL::formatter<<%= amic_scoped_cxxtype %>, OStrm_>, | ||
typename writer_t::formatter_t>::type; | ||
return TAOX11_CORBA::amic_traits <<%= scoped_cxxtype %>>::write_on (os, w.val_, formatter_t ()); | ||
os_ << IDL::traits<TAOX11_CORBA::Object>::_dump (std::move (val_), "<%= formatted_cxxname %>", true); | ||
return os_; | ||
} | ||
} // namespace IDL | ||
}; | ||
|
||
template <typename OStrm_, typename Fmt> | ||
inline OStrm_& operator <<(OStrm_& os, TAOX11_CORBA::amic_traits <<%= scoped_cxxtype %>>::__Writer<Fmt> w) | ||
{ | ||
using writer_t = TAOX11_CORBA::amic_traits <<%= scoped_cxxtype %>>::__Writer<Fmt>; | ||
using formatter_t = typename std::conditional< | ||
std::is_same< | ||
typename writer_t::formatter_t, | ||
std::false_type>::value, | ||
IDL::formatter<<%= amic_scoped_cxxtype %>, OStrm_>, | ||
typename writer_t::formatter_t>::type; | ||
return TAOX11_CORBA::amic_traits <<%= scoped_cxxtype %>>::write_on (os, w.val_, formatter_t ()); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters