diff options
author | Brad King <brad.king@kitware.com> | 2001-05-01 21:37:45 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2001-05-01 21:37:45 (GMT) |
commit | 1d4a3aa48e8781f1252a98b59a0736336a4f54bd (patch) | |
tree | 00a8bc4e030cf9cf0d5b3d7e4aba47574a9ff904 /Source/cmCableWrapCommand.h | |
parent | 45e9d19c6c456024f6cef663e29447bfae148fff (diff) | |
download | CMake-1d4a3aa48e8781f1252a98b59a0736336a4f54bd.zip CMake-1d4a3aa48e8781f1252a98b59a0736336a4f54bd.tar.gz CMake-1d4a3aa48e8781f1252a98b59a0736336a4f54bd.tar.bz2 |
ENH: Changed cmCableWrapCommand to inherit from cmCableDefineSetCommand since they do almost exactly the same thing. Added a GetXmlTag virtual function to both classes to return what XML tag to generate in the set's output. cmCableDefineSetCommand generates a "Set" tag, and cmCableWrapCommand generates a "WrapperSet" tag. What is inside the tags is still generated by the cmCableDefineSetCommand superclass.
Diffstat (limited to 'Source/cmCableWrapCommand.h')
-rw-r--r-- | Source/cmCableWrapCommand.h | 22 |
1 files changed, 14 insertions, 8 deletions
diff --git a/Source/cmCableWrapCommand.h b/Source/cmCableWrapCommand.h index 315eec3..9f7b60e 100644 --- a/Source/cmCableWrapCommand.h +++ b/Source/cmCableWrapCommand.h @@ -42,7 +42,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. #define cmCableWrapCommand_h #include "cmStandardIncludes.h" -#include "cmCablePackageEntryCommand.h" +#include "cmCableDefineSetCommand.h" /** \class cmCableWrapCommand * \brief Define a command that generates a rule for CABLE-generated wrappers. @@ -50,7 +50,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * cmCableWrapCommand is used to generate a rule in a CABLE * configuration file to create type wrappers. */ -class cmCableWrapCommand : public cmCablePackageEntryCommand +class cmCableWrapCommand : public cmCableDefineSetCommand { public: /** @@ -71,7 +71,7 @@ public: */ virtual const char* GetTerseDocumentation() { - return "Define CABLE WrapSet in a package."; + return "Define CABLE WrapperSet in a package."; } /** @@ -80,13 +80,19 @@ public: virtual const char* GetFullDocumentation() { return - "CABLE_WRAP(member1 member2 ...)\n" - "Generates a WrapSet in the CABLE configuration."; + "CABLE_WRAP(name_of_set [[tag1]:]memeber1 [[tag2]:]member2 ...\n" + " [SOURCE_FILES source1 source2 ...]] )\n" + "Generates a WrapperSet definition in the CABLE configuration.\n" + "If a the \"tag:\" syntax is not used, an attempt is made to\n" + "auto-generate a meaningful tag. If the SOURCE_FILES keyword is\n" + "given, all arguments after it refer to header files to be included\n" + "in the package in which the set is defined.\n"; } - - virtual bool WriteConfiguration(); - cmTypeMacro(cmCableWrapCommand, cmCablePackageCommand); + cmTypeMacro(cmCableWrapCommand, cmCableDefineSetCommand); + +protected: + virtual const char* GetXmlTag() const { return "WrapperSet"; } }; |