#include "DHelpUtil.h" namespace ccdb { DHelpUtil::DHelpUtil(void) { } DHelpUtil::~DHelpUtil(void) { } string DHelpUtil::GetHelp() { return string("Gets help on all commands and usage"); } std::string DHelpUtil::GetDescription() { return string("Gets help on all commands and usage"); } std::string DHelpUtil::GetExamples() { return string("help ls"); } int DHelpUtil::Process( int argc, char *argv[], int argcStart/*=2*/ ) { DConsole *cons = mContext->GetConsole(); if(argc<=argcStart + 1 ) { cons->WriteLine("To operate with callibration database one may uses similar to POSIX commands: "); map::const_iterator iter = mContext->GetUtils().begin(); for(; iter!=mContext->GetUtils().end(); ++iter) { cons->WriteLine("%10s - %s", iter->first.c_str(), iter->second->GetDescription().c_str()); } } return 0; } }