ENH: keep cleaning up Tcl/Tk modules
[cmake.git] / Source / CTest / cmCTestSubmitCommand.h
blob2c5370b04b3b79b4c9a40086452c1f43ceb49306
1 /*=========================================================================
3 Program: CMake - Cross-Platform Makefile Generator
4 Module: $RCSfile: cmCTestSubmitCommand.h,v $
5 Language: C++
6 Date: $Date: 2006-03-29 17:01:24 $
7 Version: $Revision: 1.5 $
9 Copyright (c) 2002 Kitware, Inc., Insight Consortium. All rights reserved.
10 See Copyright.txt or http://www.cmake.org/HTML/Copyright.html for details.
12 This software is distributed WITHOUT ANY WARRANTY; without even
13 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
14 PURPOSE. See the above copyright notices for more information.
16 =========================================================================*/
17 #ifndef cmCTestSubmitCommand_h
18 #define cmCTestSubmitCommand_h
20 #include "cmCTestHandlerCommand.h"
22 /** \class cmCTestSubmit
23 * \brief Run a ctest script
25 * cmCTestSubmitCommand defineds the command to submit the test results for
26 * the project.
28 class cmCTestSubmitCommand : public cmCTestHandlerCommand
30 public:
32 cmCTestSubmitCommand() {}
34 /**
35 * This is a virtual constructor for the command.
37 virtual cmCommand* Clone()
39 cmCTestSubmitCommand* ni = new cmCTestSubmitCommand;
40 ni->CTest = this->CTest;
41 ni->CTestScriptHandler = this->CTestScriptHandler;
42 return ni;
45 /**
46 * The name of the command as specified in CMakeList.txt.
48 virtual const char* GetName() { return "CTEST_SUBMIT";}
50 /**
51 * Succinct documentation.
53 virtual const char* GetTerseDocumentation()
55 return "Submits the repository.";
58 /**
59 * More documentation.
61 virtual const char* GetFullDocumentation()
63 return
64 " CTEST_SUBMIT([RETURN_VALUE res])\n"
65 "Submits the test results for the project.";
68 cmTypeMacro(cmCTestSubmitCommand, cmCTestHandlerCommand);
70 protected:
71 cmCTestGenericHandler* InitializeHandler();
75 #endif