cmAbstractFilesCommand.cxx 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. /*=========================================================================
  2. Program: Insight Segmentation & Registration Toolkit
  3. Module: $RCSfile$
  4. Language: C++
  5. Date: $Date$
  6. Version: $Revision$
  7. Copyright (c) 2000 National Library of Medicine
  8. All rights reserved.
  9. See COPYRIGHT.txt for copyright details.
  10. =========================================================================*/
  11. #include "cmAbstractFilesCommand.h"
  12. // cmAbstractFilesCommand
  13. bool cmAbstractFilesCommand::Invoke(std::vector<std::string>& args)
  14. {
  15. if(args.size() < 1 )
  16. {
  17. this->SetError("called with incorrect number of arguments");
  18. return false;
  19. }
  20. cmMakefile::ClassMap &Classes = m_Makefile->GetClasses();
  21. for(std::vector<std::string>::iterator j = args.begin();
  22. j != args.end(); ++j)
  23. {
  24. for(cmMakefile::ClassMap::iterator l = Classes.begin();
  25. l != Classes.end(); l++)
  26. {
  27. for(std::vector<cmClassFile>::iterator i = l->second.begin();
  28. i != l->second.end(); i++)
  29. {
  30. if(i->m_ClassName == (*j))
  31. {
  32. i->m_AbstractClass = true;
  33. }
  34. }
  35. }
  36. }
  37. return true;
  38. }