summaryrefslogtreecommitdiff
path: root/src/bin/eolian_cxx/eolian_wrappers.hh
diff options
context:
space:
mode:
authorDaniel Kolesa <d.kolesa@samsung.com>2014-06-30 21:29:50 +0100
committerDaniel Kolesa <d.kolesa@samsung.com>2014-06-30 21:29:50 +0100
commit14a85859c529b31bcd9ca3f791244c47c8ec8e09 (patch)
tree1633ea4af20141e8a79a84afc12a5f6cf7ec01c9 /src/bin/eolian_cxx/eolian_wrappers.hh
parentc05493b480b23cf45d2b8de9fe50070939519abb (diff)
eolian: _CLASS -> _CLASS/INTERFACE/MIXIN
Diffstat (limited to 'src/bin/eolian_cxx/eolian_wrappers.hh')
-rw-r--r--src/bin/eolian_cxx/eolian_wrappers.hh18
1 files changed, 17 insertions, 1 deletions
diff --git a/src/bin/eolian_cxx/eolian_wrappers.hh b/src/bin/eolian_cxx/eolian_wrappers.hh
index e29716c83e..2472e4a42d 100644
--- a/src/bin/eolian_cxx/eolian_wrappers.hh
+++ b/src/bin/eolian_cxx/eolian_wrappers.hh
@@ -66,7 +66,23 @@ class_from_name(std::string const& classname)
66inline std::string 66inline std::string
67class_eo_name(Eolian_Class const& klass) 67class_eo_name(Eolian_Class const& klass)
68{ 68{
69 std::string s = class_full_name(klass) + "_CLASS"; 69 std::string suffix;
70 switch (eolian_class_type_get(klass))
71 {
72 case EOLIAN_CLASS_REGULAR:
73 case EOLIAN_CLASS_ABSTRACT:
74 suffix = "CLASS";
75 break;
76 case EOLIAN_CLASS_MIXIN:
77 suffix = "MIXIN";
78 break;
79 case EOLIAN_CLASS_INTERFACE:
80 suffix = "INTERFACE";
81 break;
82 default:
83 break;
84 }
85 std::string s = class_full_name(klass) + "_" + suffix;
70 std::transform(s.begin(), s.end(), s.begin(), 86 std::transform(s.begin(), s.end(), s.begin(),
71 [](int c) 87 [](int c)
72 { 88 {