diff options
author | Ken Martin <ken.martin@kitware.com> | 2002-08-16 15:20:18 (GMT) |
---|---|---|
committer | Ken Martin <ken.martin@kitware.com> | 2002-08-16 15:20:18 (GMT) |
commit | 7b5a8762c6d5f7915db99e2344d169d14a4fda65 (patch) | |
tree | 4c5294710e7c720afde51e8e7170a39895d17c41 /Source/cmVTKWrapTclCommand.cxx | |
parent | f7b1a90256a3e7d94cbb58b595eee5190e8958ba (diff) | |
download | CMake-7b5a8762c6d5f7915db99e2344d169d14a4fda65.zip CMake-7b5a8762c6d5f7915db99e2344d169d14a4fda65.tar.gz CMake-7b5a8762c6d5f7915db99e2344d169d14a4fda65.tar.bz2 |
modified how source files store properties
Diffstat (limited to 'Source/cmVTKWrapTclCommand.cxx')
-rw-r--r-- | Source/cmVTKWrapTclCommand.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Source/cmVTKWrapTclCommand.cxx b/Source/cmVTKWrapTclCommand.cxx index 172e032..c724f5c 100644 --- a/Source/cmVTKWrapTclCommand.cxx +++ b/Source/cmVTKWrapTclCommand.cxx @@ -102,12 +102,12 @@ bool cmVTKWrapTclCommand::InitialPass(std::vector<std::string> const& argsIn) cmSourceFile *curr = m_Makefile->GetSource(j->c_str()); // if we should wrap the class - if (!curr || !curr->GetWrapExclude()) + if (!curr || !curr->GetPropertyAsBool("WRAP_EXCLUDE")) { cmSourceFile file; if (curr) { - file.SetIsAnAbstractClass(curr->IsAnAbstractClass()); + file.SetProperty("ABSTRACT",curr->GetProperty("ABSTRACT")); } std::string srcName = cmSystemTools::GetFilenameWithoutExtension(*j); std::string newName = srcName + "Tcl"; @@ -124,7 +124,7 @@ bool cmVTKWrapTclCommand::InitialPass(std::vector<std::string> const& argsIn) } // add the init file cmSourceFile cfile; - cfile.SetIsAnAbstractClass(false); + cfile.SetProperty("ABSTRACT","0"); std::string newName = m_LibraryName; newName += "Init"; this->CreateInitFile(res); @@ -162,7 +162,7 @@ void cmVTKWrapTclCommand::FinalPass() { args.push_back(hints); } - args.push_back((m_WrapClasses[classNum].IsAnAbstractClass() ? "0" : "1")); + args.push_back((m_WrapClasses[classNum].GetPropertyAsBool("ABSTRACT") ? "0" : "1")); std::string res = m_Makefile->GetCurrentOutputDirectory(); res += "/"; res += m_WrapClasses[classNum].GetSourceName() + ".cxx"; @@ -184,7 +184,7 @@ bool cmVTKWrapTclCommand::CreateInitFile(std::string& res) size_t classNum; for(classNum = 0; classNum < lastClass; classNum++) { - if (!m_WrapClasses[classNum].IsAnAbstractClass()) + if (!m_WrapClasses[classNum].GetPropertyAsBool("ABSTRACT")) { std::string cls = m_WrapHeaders[classNum]; cls = cls.substr(0,cls.size()-2); |