summaryrefslogtreecommitdiffstats
path: root/Source/cmVTKWrapPythonCommand.cxx
diff options
context:
space:
mode:
authorSebastien Barre <sebastien.barre@kitware.com>2001-12-16 23:52:49 (GMT)
committerSebastien Barre <sebastien.barre@kitware.com>2001-12-16 23:52:49 (GMT)
commit75a24394ea3f4e80b1a1fe0613baaf6bfeefaeb4 (patch)
tree2b3f3e06af2975978e619076ccbde630d17d4f01 /Source/cmVTKWrapPythonCommand.cxx
parent27522269ff5507a6a25196e3329db7eea6a1fa2e (diff)
downloadCMake-75a24394ea3f4e80b1a1fe0613baaf6bfeefaeb4.zip
CMake-75a24394ea3f4e80b1a1fe0613baaf6bfeefaeb4.tar.gz
CMake-75a24394ea3f4e80b1a1fe0613baaf6bfeefaeb4.tar.bz2
Wrap abstract class too, as per David Gobbi's request (for the sake of the internal
documentation features of python").
Diffstat (limited to 'Source/cmVTKWrapPythonCommand.cxx')
-rw-r--r--Source/cmVTKWrapPythonCommand.cxx15
1 files changed, 6 insertions, 9 deletions
diff --git a/Source/cmVTKWrapPythonCommand.cxx b/Source/cmVTKWrapPythonCommand.cxx
index 56691d3..811d17c 100644
--- a/Source/cmVTKWrapPythonCommand.cxx
+++ b/Source/cmVTKWrapPythonCommand.cxx
@@ -151,17 +151,14 @@ bool cmVTKWrapPythonCommand::CreateInitFile(std::string& res)
int 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(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);
+ cls = cls.substr(pos+1);
}
+ classes.push_back(cls);
}
// open the init file