From 653bf6c25c104c685b4eea3bacf7e1c0a0c9c2d8 Mon Sep 17 00:00:00 2001 From: Brad King Date: Tue, 22 Feb 2005 08:22:38 -0500 Subject: [PATCH] ENH: Adding cmCustomCommandLine and cmCustomCommandLines subclasses of std::vector instantiations to represent multiple commands for a single custom command. These will be used in an upcoming checkin. --- Source/cmStandardIncludes.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/Source/cmStandardIncludes.h b/Source/cmStandardIncludes.h index 662a83119..38a7afac0 100644 --- a/Source/cmStandardIncludes.h +++ b/Source/cmStandardIncludes.h @@ -263,4 +263,22 @@ struct cmDocumentationEntry const char* full; }; +/** Data structure to represent a single command line. */ +class cmCustomCommandLine: public std::vector +{ +public: + typedef std::vector Superclass; + typedef Superclass::iterator iterator; + typedef Superclass::const_iterator const_iterator; +}; + +/** Data structure to represent a list of command lines. */ +class cmCustomCommandLines: public std::vector +{ +public: + typedef std::vector Superclass; + typedef Superclass::iterator iterator; + typedef Superclass::const_iterator const_iterator; +}; + #endif