cmCTestUploadCommand.h 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. /*============================================================================
  2. CMake - Cross Platform Makefile Generator
  3. Copyright 2000-2009 Kitware, Inc., Insight Software Consortium
  4. Distributed under the OSI-approved BSD License (the "License");
  5. see accompanying file Copyright.txt for details.
  6. This software is distributed WITHOUT ANY WARRANTY; without even the
  7. implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  8. See the License for more information.
  9. ============================================================================*/
  10. #ifndef cmCTestUploadCommand_h
  11. #define cmCTestUploadCommand_h
  12. #include <cmConfigure.h>
  13. #include "cmCTest.h"
  14. #include "cmCTestHandlerCommand.h"
  15. #include "cmTypeMacro.h"
  16. #include <string>
  17. class cmCTestGenericHandler;
  18. class cmCommand;
  19. /** \class cmCTestUpload
  20. * \brief Run a ctest script
  21. *
  22. * cmCTestUploadCommand defines the command to upload result files for
  23. * the project.
  24. */
  25. class cmCTestUploadCommand : public cmCTestHandlerCommand
  26. {
  27. public:
  28. cmCTestUploadCommand() {}
  29. /**
  30. * This is a virtual constructor for the command.
  31. */
  32. cmCommand* Clone() CM_OVERRIDE
  33. {
  34. cmCTestUploadCommand* ni = new cmCTestUploadCommand;
  35. ni->CTest = this->CTest;
  36. ni->CTestScriptHandler = this->CTestScriptHandler;
  37. return ni;
  38. }
  39. /**
  40. * The name of the command as specified in CMakeList.txt.
  41. */
  42. std::string GetName() const CM_OVERRIDE { return "ctest_upload"; }
  43. cmTypeMacro(cmCTestUploadCommand, cmCTestHandlerCommand);
  44. protected:
  45. cmCTestGenericHandler* InitializeHandler() CM_OVERRIDE;
  46. bool CheckArgumentKeyword(std::string const& arg) CM_OVERRIDE;
  47. bool CheckArgumentValue(std::string const& arg) CM_OVERRIDE;
  48. enum
  49. {
  50. ArgumentDoingFiles = Superclass::ArgumentDoingLast1,
  51. ArgumentDoingLast2
  52. };
  53. cmCTest::SetOfStrings Files;
  54. };
  55. #endif