summaryrefslogtreecommitdiff
path: root/src/bin
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2017-11-27 19:52:44 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2017-12-05 10:15:40 +0900
commit5901b4601e3a240f6286ab9396d1ea2967ca61bc (patch)
treedcb679ad428348da47fd2c08cab26e292419e197 /src/bin
parentf47bb54f4f0960b34050be4342f692f33feedf35 (diff)
cxx: Implement support for parts
This generates methods like this: Part_Class part_name() const; Which can then be used like: slider.indicator().format_string_set("%1.1f");
Diffstat (limited to 'src/bin')
-rw-r--r--src/bin/eolian_cxx/eolian_cxx.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/bin/eolian_cxx/eolian_cxx.cc b/src/bin/eolian_cxx/eolian_cxx.cc
index 2df5b9ae2d..f3f3c36610 100644
--- a/src/bin/eolian_cxx/eolian_cxx.cc
+++ b/src/bin/eolian_cxx/eolian_cxx.cc
@@ -144,6 +144,14 @@ generate(const Eolian_Class* klass, eolian_cxx::options_type const& opts,
144 }; 144 };
145 klass_function(klass); 145 klass_function(klass);
146 146
147 for(efl::eina::iterator<Eolian_Part const> parts_itr ( ::eolian_class_parts_get(klass))
148 , parts_last; parts_itr != parts_last; ++parts_itr)
149 {
150 Eolian_Class const* eolian_part_klass = ::eolian_part_class_get(&*parts_itr);
151 efl::eolian::grammar::attributes::klass_def part_klass(eolian_part_klass, opts.unit);
152 forward_klasses.insert(part_klass);
153 }
154
147 cpp_headers.erase(eolian_class_file_get(klass) + std::string(".hh")); 155 cpp_headers.erase(eolian_class_file_get(klass) + std::string(".hh"));
148 156
149 std::string guard_name; 157 std::string guard_name;