slic/src
diff -u -r1.10 -r1.11
--- CmdRegistry.cc 18 May 2005 02:43:33 -0000 1.10
+++ CmdRegistry.cc 3 Aug 2005 23:35:23 -0000 1.11
@@ -1,4 +1,4 @@
-// $Header: /cvs/lcd/slic/src/CmdRegistry.cc,v 1.10 2005/05/18 02:43:33 jeremy Exp $
+// $Header: /cvs/lcd/slic/src/CmdRegistry.cc,v 1.11 2005/08/03 23:35:23 jeremy Exp $
#include "CmdRegistry.hh"
using namespace std;
@@ -17,7 +17,7 @@
static const int mm_width = 10;
static const int descr_width = 15;
static const int name_width = 20;
- static const int cmd_width = 23;
+ static const int cmd_width = 24;
static const int sep_width = 123;
os.width(opt_width);
@@ -45,16 +45,16 @@
os << '-' << std::endl;
os.fill(' ');
-
+
for ( CmdRegType::const_iterator iter = m_cmds.begin();
iter != m_cmds.end();
iter++ ) {
CmdLineOpt* cl_opt = iter->first;
-
+
std::string opt_str = "-" + cl_opt->getOpt();
os.width(opt_width);
os << left << opt_str;
-
+
std::string name_str = "--" + cl_opt->getName();
os.width(name_width);
os << left << name_str;
@@ -87,7 +87,7 @@
// insert cmd by copy
void CmdRegistry::addCmd(CmdLineOpt* cl, std::string s)
- {
+ {
// add to map
m_cmds.push_back( CmdOptToG4CmdPair( cl, s ) );
@@ -99,7 +99,7 @@
{
return m_isInStr;
}
-
+
// find by opt
std::string CmdRegistry::findG4CmdStrByOpt(const std::string& opt)
{