diff options
author | Brad King <brad.king@kitware.com> | 2001-03-01 21:47:05 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2001-03-01 21:47:05 (GMT) |
commit | dc72655414eb8a611524b6480dad92d46b08fecb (patch) | |
tree | eae01169b53d5e67156e5562ed53b4e447947658 /Source/cmCablePackageEntryCommand.cxx | |
parent | af30fe67458fd26054696ce018f7ae6faaebcca4 (diff) | |
download | CMake-dc72655414eb8a611524b6480dad92d46b08fecb.zip CMake-dc72655414eb8a611524b6480dad92d46b08fecb.tar.gz CMake-dc72655414eb8a611524b6480dad92d46b08fecb.tar.bz2 |
ENH: Change to new CABLE command architecture. CABLE configuration code is now generated on the first pass, during the Invoke() calls.
Diffstat (limited to 'Source/cmCablePackageEntryCommand.cxx')
-rw-r--r-- | Source/cmCablePackageEntryCommand.cxx | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/Source/cmCablePackageEntryCommand.cxx b/Source/cmCablePackageEntryCommand.cxx new file mode 100644 index 0000000..5930272 --- /dev/null +++ b/Source/cmCablePackageEntryCommand.cxx @@ -0,0 +1,42 @@ +/*========================================================================= + + Program: Insight Segmentation & Registration Toolkit + Module: $RCSfile$ + Language: C++ + Date: $Date$ + Version: $Revision$ + + + Copyright (c) 2000 National Library of Medicine + All rights reserved. + + See COPYRIGHT.txt for copyright details. + +=========================================================================*/ +#include "cmCablePackageEntryCommand.h" +#include "cmCacheManager.h" + +// cmCablePackageEntryCommand +bool cmCablePackageEntryCommand::Invoke(std::vector<std::string>& args) +{ + if(args.size() < 1) + { + this->SetError("called with incorrect number of arguments"); + return false; + } + + // This command instance needs to use the cmCableData instance. + this->SetupCableData(); + + // The arguments are the entries to the Pacakge. + for(std::vector<std::string>::const_iterator arg = args.begin(); + arg != args.end(); ++arg) + { + m_Entries.push_back(*arg); + } + + // Write this command's configuration. + this->WriteConfiguration(); + + return true; +} |