Changeset 10404 for code/branches/core7/src/libraries/core/commandline
- Timestamp:
- Apr 26, 2015, 8:47:52 PM (10 years ago)
- Location:
- code/branches/core7/src/libraries/core/commandline
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/core7/src/libraries/core/commandline/CommandLineIncludes.h
r10353 r10404 63 63 { CommandLineParser::addArgument(this->argument_); } 64 64 65 virtual void unload() 66 { CommandLineParser::removeArgument(this->argument_); } 67 65 68 inline CommandLineArgument& getArgument() 66 69 { return *this->argument_; } -
code/branches/core7/src/libraries/core/commandline/CommandLineParser.cc
r10345 r10404 354 354 _getInstance().cmdLineArgs_[argument->getName()] = argument; 355 355 } 356 357 /** 358 * @brief Removes a CommandLineArgument from the internal map. 359 */ 360 void CommandLineParser::removeArgument(CommandLineArgument* argument) 361 { 362 _getInstance().cmdLineArgs_.erase(argument->getName()); 363 } 356 364 } -
code/branches/core7/src/libraries/core/commandline/CommandLineParser.h
r10345 r10404 151 151 static const MultiType& getValue(const std::string& name) 152 152 { return getArgument(name)->getValue(); } 153 153 154 static void addArgument(CommandLineArgument* argument); 155 static void removeArgument(CommandLineArgument* argument); 154 156 155 157 static bool existsArgument(const std::string& name)
Note: See TracChangeset
for help on using the changeset viewer.