Refactored comment translator class, implemented result caching

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2012-doxygen@13191 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Dmitry Kabak 2012-06-25 15:47:36 +00:00
commit 4289b8e273
10 changed files with 159 additions and 112 deletions

View file

@ -150,12 +150,12 @@ std::string JavaDocConverter::translateEntity(DoxygenEntity & doxyEntity) {
}
bool JavaDocConverter::getDocumentation(Node *node, String *&documentation) {
String *JavaDocConverter::makeDocumentation(Node *node) {
documentation = Getattr(node, "DoxygenComment");
String *documentation = getDoxygenComment(node);
if (documentation == NULL) {
return false;
return NULL;
}
std::list < DoxygenEntity > entityList = DoxygenParser().createTree(Char(documentation));
@ -181,7 +181,6 @@ bool JavaDocConverter::getDocumentation(Node *node, String *&documentation) {
std::cout << "\n---RESULT IN JAVADOC---" << std::endl;
std::cout << javaDocString;
}
documentation = NewString(javaDocString.c_str());
return true;
return NewString(javaDocString.c_str());
}