From 5f34ed131114346785d1074b8eb5b648a9edab67 Mon Sep 17 00:00:00 2001 From: Glen Lehmann Date: Thu, 25 Jun 2009 19:58:32 -0400 Subject: [PATCH] ENH: make cableidx able to work with enums --- Executables/cableidx.cxx | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Executables/cableidx.cxx b/Executables/cableidx.cxx index 6b42bf2..9c5c979 100644 --- a/Executables/cableidx.cxx +++ b/Executables/cableidx.cxx @@ -174,6 +174,14 @@ int DetermineClassesToWrap(std::ofstream& fout, const Namespace* cns, const char << "{" << c->GetQualifiedName() << "} {" << td->GetName() << "} {" << group << "}\n"; } + const EnumerationType* et = EnumerationType::SafeDownCast(td->GetType()); + if(et) + { + const Enumeration* e = et->GetEnumeration(); + fout + << "{" << e->GetQualifiedName() << "} {" + << td->GetName() << "} {" << group << "}\n"; + } } } }