diff options
Diffstat (limited to 'Source/CPack/IFW/cmCPackIFWCommon.h')
-rw-r--r-- | Source/CPack/IFW/cmCPackIFWCommon.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/Source/CPack/IFW/cmCPackIFWCommon.h b/Source/CPack/IFW/cmCPackIFWCommon.h index 66b6e89..354d849 100644 --- a/Source/CPack/IFW/cmCPackIFWCommon.h +++ b/Source/CPack/IFW/cmCPackIFWCommon.h @@ -5,6 +5,7 @@ #include "cmConfigure.h" // IWYU pragma: keep +#include <map> #include <string> class cmCPackIFWGenerator; @@ -46,6 +47,21 @@ public: */ bool IsVersionEqual(const char* version); + /** Expand the list argument containing the map of the key-value pairs. + * If the number of elements is odd, then the first value is used as the + * default value with an empty key. + * Any values with the same keys will be permanently overwritten. + */ + static void ExpandListArgument(const std::string& arg, + std::map<std::string, std::string>& argsOut); + + /** Expand the list argument containing the multimap of the key-value pairs. + * If the number of elements is odd, then the first value is used as the + * default value with an empty key. + */ + static void ExpandListArgument( + const std::string& arg, std::multimap<std::string, std::string>& argsOut); + cmCPackIFWGenerator* Generator; protected: |