tool/CommandRegRead.h
changeset 1389 5b392b22a2da
parent 1388 3c886ec376f5
child 1826 ec6223c3b7ec
equal deleted inserted replaced
1388:3c886ec376f5 1389:5b392b22a2da
    28  ****************************************************************************/
    28  ****************************************************************************/
    29 
    29 
    30 #ifndef __COMMANDREGREAD_H__
    30 #ifndef __COMMANDREGREAD_H__
    31 #define __COMMANDREGREAD_H__
    31 #define __COMMANDREGREAD_H__
    32 
    32 
    33 #include "Command.h"
    33 #include "CommandReg.h"
    34 
    34 
    35 /****************************************************************************/
    35 /****************************************************************************/
    36 
    36 
    37 class CommandRegRead:
    37 class CommandRegRead:
    38     public Command
    38     public CommandReg
    39 {
    39 {
    40     public:
    40     public:
    41         CommandRegRead();
    41         CommandRegRead();
    42 
    42 
    43         string helpString() const;
    43         string helpString() const;
    44         void execute(MasterDevice &, const StringVector &);
    44         void execute(MasterDevice &, const StringVector &);
    45 
       
    46     private:
       
    47         struct DataType {
       
    48             const char *name;
       
    49             unsigned int byteSize;
       
    50         };
       
    51         static const DataType dataTypes[];
       
    52         static const DataType *findDataType(const string &);
       
    53 };
    45 };
    54 
    46 
    55 /****************************************************************************/
    47 /****************************************************************************/
    56 
    48 
    57 #endif
    49 #endif