diff options
author | Brad King <brad.king@kitware.com> | 2001-03-13 23:01:49 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2001-03-13 23:01:49 (GMT) |
commit | 007f5ccd5fb5f4a751b6e5fceb87f862bf4fb1c8 (patch) | |
tree | 377d2fd9137e4a445ac933690f71835ff4d63186 /Source/cmCableDefineSetCommand.h | |
parent | 50c91396288ab87c21e32d5ff3ae13ce3805d2c4 (diff) | |
download | CMake-007f5ccd5fb5f4a751b6e5fceb87f862bf4fb1c8.zip CMake-007f5ccd5fb5f4a751b6e5fceb87f862bf4fb1c8.tar.gz CMake-007f5ccd5fb5f4a751b6e5fceb87f862bf4fb1c8.tar.bz2 |
ENH: Added support for element tag specification with syntax tag:element as an argument to the CABLE_DEFINE_SET command. A single colon with nothing to its left will result in an empty tag.
Diffstat (limited to 'Source/cmCableDefineSetCommand.h')
-rw-r--r-- | Source/cmCableDefineSetCommand.h | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/Source/cmCableDefineSetCommand.h b/Source/cmCableDefineSetCommand.h index 618990b..db015a5 100644 --- a/Source/cmCableDefineSetCommand.h +++ b/Source/cmCableDefineSetCommand.h @@ -69,17 +69,19 @@ public: virtual const char* GetFullDocumentation() { return - "CABLE_DEFINE_SET(name_of_set member1 member2 ...)\n" - "Generates a Set definition in the CABLE configuration. Tags are\n" - "automatically generated. The sets are referenced in other CABLE\n" - "commands by a '$' immediately followed by the set name (ex. $SetName)."; + "CABLE_DEFINE_SET(name_of_set [[tag1]:]memeber1 [[tag2]:]member2 ...)\n" + "Generates a Set definition in the CABLE configuration. The sets are\n" + "referenced in other CABLE commands by a '$' immediately followed by\n" + "the set name (ex. $SetName). If a the \"tag:\" syntax is not used,\n" + "an attempt is made to auto-generate a meaningful tag.\n"; } cmTypeMacro(cmCableDefineSetCommand, cmCableCommand); private: void WriteConfiguration() const; - std::string GenerateTag(const std::string&) const; + bool AddElement(const std::string&); + bool GenerateTag(const std::string&, std::string&); private: typedef std::pair<std::string, std::string> Element; typedef std::vector<Element> Elements; |