[cig-commits] r11698 - cs/benchmark/cigma/trunk/src

luis at geodynamics.org luis at geodynamics.org
Tue Apr 1 01:40:21 PDT 2008


Author: luis
Date: 2008-04-01 01:40:21 -0700 (Tue, 01 Apr 2008)
New Revision: 11698

Modified:
   cs/benchmark/cigma/trunk/src/CommandSet.cpp
Log:
Namespace declaration in CommandSet


Modified: cs/benchmark/cigma/trunk/src/CommandSet.cpp
===================================================================
--- cs/benchmark/cigma/trunk/src/CommandSet.cpp	2008-04-01 08:40:19 UTC (rev 11697)
+++ cs/benchmark/cigma/trunk/src/CommandSet.cpp	2008-04-01 08:40:21 UTC (rev 11698)
@@ -11,11 +11,16 @@
 #include "EvalCmd.h"
 #include "CompareCmd.h"
 
-cigma::CommandSet::CommandSet()
+using namespace cigma;
+
+
+// ---------------------------------------------------------------------------
+
+CommandSet::CommandSet()
 {
 }
 
-cigma::CommandSet::~CommandSet()
+CommandSet::~CommandSet()
 {
     for(CmdMap::iterator i = commands.begin(); i != commands.end(); ++i)
     {
@@ -25,7 +30,7 @@
     }
 }
 
-void cigma::CommandSet::initialize()
+void CommandSet::initialize()
 {
     /* create help command separately */
     HelpCmd *help = new HelpCmd();
@@ -44,15 +49,15 @@
     help->setCommandSet(this);
 }
 
-void cigma::CommandSet::addCommand(Command *cmd)
+void CommandSet::addCommand(Command *cmd)
 {
     assert(cmd != 0);
     names.push_back(cmd->name);
     commands[cmd->name] = cmd;
 }
 
-cigma::Command *
-cigma::CommandSet::getCommand(std::string name)
+Command *
+CommandSet::getCommand(std::string name)
 {
     Command *cmd = 0;
     CmdMap::iterator it = commands.find(name);
@@ -63,7 +68,7 @@
     return cmd;
 }
 
-int cigma::CommandSet::main(int argc, char *argv[])
+int CommandSet::main(int argc, char *argv[])
 {
     AnyOption *opt = new AnyOption();
     Command *cmd = 0;
@@ -124,3 +129,5 @@
 
     return status;
 }
+
+// ---------------------------------------------------------------------------



More information about the cig-commits mailing list