tool/Command.h
changeset 2589 2b9c78543663
parent 2011 04fdb4abf120
child 2590 0e207abed88a
equal deleted inserted replaced
2415:af21f0bdc7c9 2589:2b9c78543663
   105         DomainIndexList getDomainIndices() const;
   105         DomainIndexList getDomainIndices() const;
   106 
   106 
   107         void setDataType(const string &);
   107         void setDataType(const string &);
   108         const string &getDataType() const;
   108         const string &getDataType() const;
   109 
   109 
       
   110         void setEmergency(bool);
       
   111         bool getEmergency() const;
       
   112 
   110         void setForce(bool);
   113         void setForce(bool);
   111         bool getForce() const;
   114         bool getForce() const;
   112 
   115 
   113         void setOutputFile(const string &);
   116         void setOutputFile(const string &);
   114         const string &getOutputFile() const;
   117         const string &getOutputFile() const;
       
   118 
       
   119         void setSkin(const string &);
       
   120         const string &getSkin() const;
   115 
   121 
   116         bool matchesSubstr(const string &) const;
   122         bool matchesSubstr(const string &) const;
   117         bool matchesAbbrev(const string &) const;
   123         bool matchesAbbrev(const string &) const;
   118 
   124 
   119         virtual string helpString(const string &) const = 0;
   125         virtual string helpString(const string &) const = 0;
   134         typedef list<ec_ioctl_slave_t> SlaveList;
   140         typedef list<ec_ioctl_slave_t> SlaveList;
   135         SlaveList selectedSlaves(MasterDevice &);
   141         SlaveList selectedSlaves(MasterDevice &);
   136         typedef list<ec_ioctl_config_t> ConfigList;
   142         typedef list<ec_ioctl_config_t> ConfigList;
   137         ConfigList selectedConfigs(MasterDevice &);
   143         ConfigList selectedConfigs(MasterDevice &);
   138         typedef list<ec_ioctl_domain_t> DomainList;
   144         typedef list<ec_ioctl_domain_t> DomainList;
   139         DomainList selectedDomains(MasterDevice &);
   145         DomainList selectedDomains(MasterDevice &, const ec_ioctl_master_t &);
       
   146         int emergencySlave() const;
   140 
   147 
   141         static string alStateString(uint8_t);
   148         static string alStateString(uint8_t);
   142 
   149 
   143     private:
   150     private:
   144         string name;
   151         string name;
   147         Verbosity verbosity;
   154         Verbosity verbosity;
   148         string aliases;
   155         string aliases;
   149         string positions;
   156         string positions;
   150         string domains;
   157         string domains;
   151         string dataType;
   158         string dataType;
       
   159         bool emergency;
   152         bool force;
   160         bool force;
   153         string outputFile;
   161         string outputFile;
       
   162         string skin;
   154 
   163 
   155         Command();
   164         Command();
   156 };
   165 };
   157 
   166 
   158 /****************************************************************************/
   167 /****************************************************************************/
   183     return dataType;
   192     return dataType;
   184 }
   193 }
   185 
   194 
   186 /****************************************************************************/
   195 /****************************************************************************/
   187 
   196 
       
   197 inline bool Command::getEmergency() const
       
   198 {
       
   199     return emergency;
       
   200 }
       
   201 
       
   202 /****************************************************************************/
       
   203 
   188 inline bool Command::getForce() const
   204 inline bool Command::getForce() const
   189 {
   205 {
   190     return force;
   206     return force;
   191 }
   207 }
   192 
   208 
   197     return outputFile;
   213     return outputFile;
   198 }
   214 }
   199 
   215 
   200 /****************************************************************************/
   216 /****************************************************************************/
   201 
   217 
       
   218 inline const string &Command::getSkin() const
       
   219 {
       
   220     return skin;
       
   221 }
       
   222 
       
   223 /****************************************************************************/
       
   224 
   202 #endif
   225 #endif