cmAbstractFilesRule.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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. #ifndef cmAbstractFilesRule_h
  12. #define cmAbstractFilesRule_h
  13. #include "cmStandardIncludes.h"
  14. #include "cmRuleMaker.h"
  15. class cmAbstractFilesRule : public cmRuleMaker
  16. {
  17. public:
  18. virtual cmRuleMaker* Clone()
  19. {
  20. return new cmAbstractFilesRule;
  21. }
  22. /**
  23. * This is called when the rule is first encountered in
  24. * the input file.
  25. */
  26. virtual bool Invoke(std::vector<std::string>& args);
  27. /**
  28. * This is called at the end after all the information
  29. * specified by the rules is accumulated.
  30. */
  31. virtual void FinalPass() { }
  32. /**
  33. * The name of the rule as specified in CMakeList.txt.
  34. */
  35. virtual const char* GetName() { return "ABSTRACT_FILES";}
  36. /**
  37. * Succinct documentation.
  38. */
  39. virtual const char* TerseDocumentation()
  40. {
  41. return "A list of abstract classes, useful for wrappers.";
  42. }
  43. /**
  44. * Longer documentation.
  45. */
  46. virtual const char* FullDocumentation()
  47. {
  48. return
  49. "ABSTRACT_FILES(file1 file2 ..)";
  50. }
  51. };
  52. #endif