cmCableClassSetCommand.h 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. /*=========================================================================
  2. Program: Insight Segmentation & Registration Toolkit
  3. Module: $RCSfile$
  4. Language: C++
  5. Date: $Date$
  6. Version: $Revision$
  7. Copyright (c) 2002 Insight Consortium. All rights reserved.
  8. See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm for details.
  9. This software is distributed WITHOUT ANY WARRANTY; without even
  10. the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
  11. PURPOSE. See the above copyright notices for more information.
  12. =========================================================================*/
  13. #ifndef cmCableClassSetCommand_h
  14. #define cmCableClassSetCommand_h
  15. #include "cmStandardIncludes.h"
  16. #include "cmCommand.h"
  17. #include "cmCableClassSet.h"
  18. /** \class cmCableClassSetCommand
  19. *
  20. */
  21. class cmCableClassSetCommand : public cmCommand
  22. {
  23. public:
  24. cmCableClassSetCommand() {}
  25. virtual ~cmCableClassSetCommand() {}
  26. /**
  27. * This is a virtual constructor for the command.
  28. */
  29. virtual cmCommand* Clone()
  30. {
  31. return new cmCableClassSetCommand;
  32. }
  33. /**
  34. * This is called when the command is first encountered in
  35. * the CMakeLists.txt file.
  36. */
  37. virtual bool InitialPass(std::vector<std::string> const& args);
  38. /**
  39. * The name of the command as specified in CMakeList.txt.
  40. */
  41. virtual const char* GetName() { return "CABLE_CLASS_SET";}
  42. /**
  43. * Succinct documentation.
  44. */
  45. virtual const char* GetTerseDocumentation()
  46. {
  47. return "Define a set of classes for use in other CABLE commands.";
  48. }
  49. /**
  50. * More documentation.
  51. */
  52. virtual const char* GetFullDocumentation()
  53. {
  54. return
  55. "CABLE_CLASS_SET(set_name class1 class2 ...)\n"
  56. "Defines a set with the given name containing classes and their\n"
  57. "associated header files. The set can later be used by other CABLE\n"
  58. "commands.";
  59. }
  60. cmTypeMacro(cmCableClassSetCommand, cmCommand);
  61. private:
  62. /**
  63. * The name of the class set.
  64. */
  65. std::string m_ClassSetName;
  66. };
  67. #endif