Wrap abstract class too, as per David Gobbi's request (for the sake of the internal

documentation features of python").
This commit is contained in:
Sebastien Barre 2001-12-16 18:52:49 -05:00
parent 27522269ff
commit 75a24394ea
1 changed files with 6 additions and 9 deletions

View File

@ -151,17 +151,14 @@ bool cmVTKWrapPythonCommand::CreateInitFile(std::string& res)
int classNum; int classNum;
for(classNum = 0; classNum < lastClass; classNum++) for(classNum = 0; classNum < lastClass; classNum++)
{ {
if (!m_WrapClasses[classNum].IsAnAbstractClass()) std::string cls = m_WrapHeaders[classNum];
cls = cls.substr(0,cls.size()-2);
std::string::size_type pos = cls.rfind('/');
if(pos != std::string::npos)
{ {
std::string cls = m_WrapHeaders[classNum]; cls = cls.substr(pos+1);
cls = cls.substr(0,cls.size()-2);
std::string::size_type pos = cls.rfind('/');
if(pos != std::string::npos)
{
cls = cls.substr(pos+1);
}
classes.push_back(cls);
} }
classes.push_back(cls);
} }
// open the init file // open the init file