ENH: mark some vars as advanced (and resort the list)
[cmake.git] / Source / cmOptionCommand.h
blobfa0613590fdd42346b4531e6e4fc47102ae34f5f
1 /*=========================================================================
3 Program: Insight Segmentation & Registration Toolkit
4 Module: $RCSfile: cmOptionCommand.h,v $
5 Language: C++
6 Date: $Date: 2002-01-21 20:30:31 $
7 Version: $Revision: 1.7 $
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 cmOptionCommand_h
18 #define cmOptionCommand_h
20 #include "cmStandardIncludes.h"
21 #include "cmCommand.h"
23 /** \class cmOptionCommand
24 * \brief Provide an option to the user
26 * cmOptionCommand provides an option for the user to select
28 class cmOptionCommand : public cmCommand
30 public:
31 /**
32 * This is a virtual constructor for the command.
34 virtual cmCommand* Clone()
36 return new cmOptionCommand;
39 /**
40 * This is called when the command is first encountered in
41 * the CMakeLists.txt file.
43 virtual bool InitialPass(std::vector<std::string> const& args);
45 /**
46 * This determines if the command gets propagated down
47 * to makefiles located in subdirectories.
49 virtual bool IsInherited() {return true;}
51 /**
52 * The name of the command as specified in CMakeList.txt.
54 virtual const char* GetName() {return "OPTION";}
56 /**
57 * Succinct documentation.
59 virtual const char* GetTerseDocumentation()
61 return "Provides an option that the user can optionally select";
64 /**
65 * More documentation.
67 virtual const char* GetFullDocumentation()
69 return
70 "OPTION(USE_MPI \"help string decribing the option\" [initial value])\n"
71 "Provide an option for the user to select";
74 cmTypeMacro(cmOptionCommand, cmCommand);
79 #endif