1 /*=========================================================================
3 Program: Insight Segmentation & Registration Toolkit
4 Module: $RCSfile: cmMessageCommand.h,v $
6 Date: $Date: 2002-03-29 15:56:07 $
7 Version: $Revision: 1.5 $
9 Copyright (c) 2002 Insight Consortium. All rights reserved.
10 See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm 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 cmMessageCommand_h
18 #define cmMessageCommand_h
20 #include "cmStandardIncludes.h"
21 #include "cmCommand.h"
23 /** \class cmMessageCommand
24 * \brief Displays a message to the user
27 class cmMessageCommand
: public cmCommand
31 * This is a virtual constructor for the command.
33 virtual cmCommand
* Clone()
35 return new cmMessageCommand
;
39 * This is called when the command is first encountered in
40 * the CMakeLists.txt file.
42 virtual bool InitialPass(std::vector
<std::string
> const& args
);
45 * The name of the command as specified in CMakeList.txt.
47 virtual const char* GetName() { return "MESSAGE";}
50 * Succinct documentation.
52 virtual const char* GetTerseDocumentation()
54 return "Display a message to the user.";
60 virtual const char* GetFullDocumentation()
63 "MESSAGE([SEND_ERROR] \"message to display\"...)\n"
64 "The arguments are messages to display. If the first argument is SEND_ERROR then an error is raised.";
67 cmTypeMacro(cmMessageCommand
, cmCommand
);