cmCTestUploadHandler.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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 cmCTestUploadHandler_h
  11. #define cmCTestUploadHandler_h
  12. #include <cmConfigure.h>
  13. #include "cmCTest.h"
  14. #include "cmCTestGenericHandler.h"
  15. #include "cmTypeMacro.h"
  16. /** \class cmCTestUploadHandler
  17. * \brief Helper class for CTest
  18. *
  19. * Submit arbitrary files
  20. *
  21. */
  22. class cmCTestUploadHandler : public cmCTestGenericHandler
  23. {
  24. public:
  25. cmTypeMacro(cmCTestUploadHandler, cmCTestGenericHandler);
  26. cmCTestUploadHandler();
  27. ~cmCTestUploadHandler() CM_OVERRIDE {}
  28. /*
  29. * The main entry point for this class
  30. */
  31. int ProcessHandler() CM_OVERRIDE;
  32. void Initialize() CM_OVERRIDE;
  33. /** Specify a set of files to submit. */
  34. void SetFiles(cmCTest::SetOfStrings const& files);
  35. private:
  36. cmCTest::SetOfStrings Files;
  37. };
  38. #endif