cmCablePackageEntryCommand.h 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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 cmCablePackageEntryCommand_h
  12. #define cmCablePackageEntryCommand_h
  13. #include "cmStandardIncludes.h"
  14. #include "cmCableCommand.h"
  15. /** \class cmCablePackageEntryCommand
  16. * \brief Superclass to all CABLE Package entry generation commands.
  17. *
  18. * cmCablePackageEntryCommand implements the Invoke method of a cmCommand
  19. * to save the arguments as a vector of entries to a CABLE Package. The
  20. * Invoke then calls the virtual WriteConfiguration() so that the subclass
  21. * can generate the configuration code for its particular type of Package
  22. * entry.
  23. */
  24. class cmCablePackageEntryCommand : public cmCableCommand
  25. {
  26. public:
  27. cmCablePackageEntryCommand() {}
  28. virtual ~cmCablePackageEntryCommand() {}
  29. /**
  30. * This is called when the command is first encountered in
  31. * the CMakeLists.txt file.
  32. */
  33. virtual bool Invoke(std::vector<std::string>& args);
  34. cmTypeMacro(cmCablePackageEntryCommand, cmCableCommand);
  35. virtual void WriteConfiguration() const =0;
  36. protected:
  37. typedef std::vector<std::string> Entries;
  38. /**
  39. * The package entries.
  40. */
  41. Entries m_Entries;
  42. };
  43. #endif