diff options
author | Brad King <brad.king@kitware.com> | 2005-02-22 08:22:38 -0500 |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2005-02-22 08:22:38 -0500 |
commit | 653bf6c25c104c685b4eea3bacf7e1c0a0c9c2d8 (patch) | |
tree | e589ab5dbc12a145ae0d2c83ebf320a272ff92be /Source/cmStandardIncludes.h | |
parent | 1662466ca272247b29a8fe27889b4798c977aa68 (diff) | |
download | cmake-653bf6c25c104c685b4eea3bacf7e1c0a0c9c2d8.tar.gz |
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.
Diffstat (limited to 'Source/cmStandardIncludes.h')
-rw-r--r-- | Source/cmStandardIncludes.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/Source/cmStandardIncludes.h b/Source/cmStandardIncludes.h index 662a831197..38a7afac0d 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<std::string> +{ +public: + typedef std::vector<std::string> 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<cmCustomCommandLine> +{ +public: + typedef std::vector<cmCustomCommandLine> Superclass; + typedef Superclass::iterator iterator; + typedef Superclass::const_iterator const_iterator; +}; + #endif |