aboutsummaryrefslogtreecommitdiffstats
path: root/src/examples
diff options
context:
space:
mode:
authorFelipe Magno de Almeida <felipe@expertisesolutions.com.br>2018-08-23 02:47:47 +0000
committerStefan Schmidt <s.schmidt@samsung.com>2018-08-24 11:42:49 +0200
commit2032e7d787a19fff9688040a0713ca3e8ad15fda (patch)
tree4d1728041d82d24af94e050ff2aa0d6143703d27 /src/examples
parentexamples: elementary: fix path for image include to dist (diff)
downloadefl-2032e7d787a19fff9688040a0713ca3e8ad15fda.tar.gz
eolian-cxx: Remove test that can't be implemented
The feature required by this test was removed. When the feature is reincluded with newer syntax the test will be rewritten and readded. Differential Revision: https://phab.enlightenment.org/D6897
Diffstat (limited to 'src/examples')
-rw-r--r--src/examples/eolian_cxx/eolian_cxx_inherit_01.cc89
1 files changed, 0 insertions, 89 deletions
diff --git a/src/examples/eolian_cxx/eolian_cxx_inherit_01.cc b/src/examples/eolian_cxx/eolian_cxx_inherit_01.cc
deleted file mode 100644
index 5cd6b20596..0000000000
--- a/src/examples/eolian_cxx/eolian_cxx_inherit_01.cc
+++ /dev/null
@@ -1,89 +0,0 @@
-
-#include <iostream>
-#include <cassert>
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "ns_colourable.eo.hh"
-#include "ns_colourablesquare.eo.hh"
-#include "ns_colourable.eo.impl.hh"
-#include "ns_colourablesquare.eo.impl.hh"
-
-#include <eo_inherit.hh>
-
-using namespace efl;
-
-struct ColourableCircle
- : efl::eo::inherit<ColourableCircle, ::ns::Colourable>
-{
- ColourableCircle(int rgb)
- : inherit_base(::ns::Colourable::rgb_24bits_constructor(rgb))
- {}
-
- int colour_get()
- {
- int rgb = 0;
- rgb = ::ns_colourable_colour_get(eo_super(_eo_ptr(), _eo_class()));
- std::cout << "ColourableCircle::colour_get(" << this << ") ==> "
- << std::hex << rgb << std::endl;
- return rgb;
- }
-};
-
-/*
-struct ColourableFoo
- : efl::eo::inherit<ColourableFoo,
- ::colourable,
- ::colourablesquare>
-{
- ColourableFoo(int size, int rgb)
- : inherit_base(efl::eo::args<::colourable>(size)
- , efl::eo::args<::colourablesquare>(rgb))
- {}
-};*/
-
-struct ColourableBar
- : efl::eo::inherit<ColourableBar, ::ns::ColourableSquare>
-{
- ColourableBar()
- : inherit_base(::ns::Colourable::rgb_24bits_constructor(0))
- {}
-
- int colour_get()
- {
- int rgb = 0;
- rgb = ::ns_colourable_colour_get(eo_super(_eo_ptr(), _eo_class()));
- std::cout << "ColourableBar::colour_get(" << this << ") ==> "
- << std::hex << rgb << std::endl;
- return rgb;
- }
-
-};
-
-int
-main()
-{
- efl::eo::eo_init init;
- eina_log_domain_level_set("colourable", EINA_LOG_LEVEL_DBG);
-
- ColourableCircle obj1(0x0);
- obj1.composite_colour_set(0xc0, 0xff, 0xee);
-
- ColourableCircle obj2(0xc0ffee);
- int r, g, b;
- obj2.composite_colour_get(&r, &g, &b);
-
-
- ColourableBar obj3;
- obj3.composite_colour_get(&r, &g, &b);
-
- assert(r == 0xc0);
- assert(g == 0xff);
- assert(b == 0xee);
-
- assert(obj1.colour_get() == obj2.colour_get());
-
- return 0;
-}