#ifndef DHelpUtil_h__ #define DHelpUtil_h__ #include #include "DConsoleUtilBase.h" #include "DConsoleContext.h" using namespace std; namespace ccdb { class DHelpUtil : public DConsoleUtilBase { public: DHelpUtil(void); virtual ~DHelpUtil(void); /** @brief returns help for util * @returns help text */ virtual string GetHelp(); /** @brief returns small (one line) description of a command * @returns help text */ virtual string GetDescription(); /** @brief returns examples of usage * @returns examples text */ virtual string GetExamples(); /** @brief Process commands * * @param argc from main() * @param argv[] from main() * @param argcStart argument to start with * @returns <0 if imediate stop required, 0 if OK, >0 if errors but no stop needed */ virtual int Process(int argc, char *argv[], int argcStart=2); private: DConsoleContext *mContext; //Console context }gDHelpUtil; } #endif // DHelpUtil_h__