path: root/src/examples/eolian_cxx/
diff options
authorVitor Sousa <>2015-03-26 11:48:09 -0300
committerFelipe Magno de Almeida <>2015-04-14 01:06:57 -0300
commitce36f0be936f218d87055cf21b643ab327f07853 (patch)
treefde18f8d5e3e33b57583ba321e61e7f4a07de224 /src/examples/eolian_cxx/
parent72604d49574dba6d540d631895facbbc9b12bb2f (diff)
eolain_cxx: Fix C++ support for new Eolian features
Added optional constructor methods for C++ Eolian wrappers. Changed the interface of wrappers' main constructors. If there are optional constructor methods they should be passed as variadic template argument at the end of the constructor. To support variadic template arguments, the optional "parent" parameter is now the first parameter and there is another constructor without the "parent" parameter. Checking for @optinal and @nullable attributes instead of @nonull. Now @nonull is the default, and eina::optional is only used when @optional or @nullable attribute is specified. The names of constructor methods no longer have the class name prefixed. Added unit tests for checking the binding of optional constructors. Added new .eo file to be used in the test. Changed the generated documentation of constructors. Changed the efl::eo::inherit accordingly, to address these new features. Now the constructor methods should be explicit called in the efl::eo::inherit constructor, which will receive them via variadic template arguments. Added another constructor to efl::eo::inherit for passing the parent object. Updated some tests and examples to follow the new interface. Removed some code that is no longer necessary. Also, fix Eolian C++ support for constructing properties. fix assertion when parsing constructing properties. Now if a property is a constructing property eolian_cxx will generate a constructor method that have the property name (without the "_set" suffix).
Diffstat (limited to 'src/examples/eolian_cxx/')
1 files changed, 1 insertions, 1 deletions
diff --git a/src/examples/eolian_cxx/ b/src/examples/eolian_cxx/
index 8c41c0eab7..c9334bc5df 100644
--- a/src/examples/eolian_cxx/
+++ b/src/examples/eolian_cxx/
@@ -28,7 +28,7 @@ example_callbacks()
28{ 28{
29 int count = 0; 29 int count = 0;
30 efl::ecore::poller poller( 30 efl::ecore::poller poller(
31 poller.ecore_poller_constructor(ECORE_POLLER_CORE, 1, 31 poller.constructor(ECORE_POLLER_CORE, 1,
32 [&count, &poller] 32 [&count, &poller]
33 { 33 {
34 if (++count == 5) 34 if (++count == 5)