tool/Command.h
changeset 1144 7dbfdd61812c
parent 1142 59be91dfcbe1
child 1146 f18d124d7fbc
equal deleted inserted replaced
1143:09ee878d7214 1144:7dbfdd61812c
    74         virtual string helpString() const = 0;
    74         virtual string helpString() const = 0;
    75 
    75 
    76         typedef vector<string> StringVector;
    76         typedef vector<string> StringVector;
    77         virtual void execute(MasterDevice &, const StringVector &) = 0;
    77         virtual void execute(MasterDevice &, const StringVector &) = 0;
    78 
    78 
       
    79         static string numericInfo();
       
    80 
    79     protected:
    81     protected:
    80         void throwInvalidUsageException(const stringstream &);
    82         void throwInvalidUsageException(const stringstream &);
    81         void throwCommandException(const stringstream &);
    83         void throwCommandException(const stringstream &);
    82 
    84 
    83 		enum {BreakAfterBytes = 16};
    85 		enum {BreakAfterBytes = 16};
    84         static string numericInfo();
       
    85 
    86 
    86     private:
    87     private:
    87 		string name;
    88 		string name;
    88         string briefDesc;
    89         string briefDesc;
    89         Verbosity verbosity;
    90         Verbosity verbosity;