tool/Command.h
changeset 2042 8b358effa78b
parent 2011 04fdb4abf120
child 2436 960cc1bb6b4a
child 2589 2b9c78543663
equal deleted inserted replaced
2041:f5b31f46c38f 2042:8b358effa78b
    94             Normal,
    94             Normal,
    95             Verbose
    95             Verbose
    96         };
    96         };
    97         void setVerbosity(Verbosity);
    97         void setVerbosity(Verbosity);
    98         Verbosity getVerbosity() const;
    98         Verbosity getVerbosity() const;
    99         void setAlias(int);
    99 
   100         int getAlias() const;
   100         void setAliases(const string &);
   101         void setPosition(int);
   101         void setPositions(const string &);
   102         int getPosition() const;
   102 
   103         void setDomain(int);
   103         void setDomains(const string &);
   104         int getDomain() const;
   104         typedef list<unsigned int> DomainIndexList;
       
   105         DomainIndexList getDomainIndices() const;
       
   106 
   105         void setDataType(const string &);
   107         void setDataType(const string &);
   106         const string &getDataType() const;
   108         const string &getDataType() const;
       
   109 
   107         void setForce(bool);
   110         void setForce(bool);
   108         bool getForce() const;
   111         bool getForce() const;
       
   112 
   109         void setOutputFile(const string &);
   113         void setOutputFile(const string &);
   110         const string &getOutputFile() const;
   114         const string &getOutputFile() const;
   111 
   115 
   112         bool matchesSubstr(const string &) const;
   116         bool matchesSubstr(const string &) const;
   113         bool matchesAbbrev(const string &) const;
   117         bool matchesAbbrev(const string &) const;
   139     private:
   143     private:
   140         string name;
   144         string name;
   141         string briefDesc;
   145         string briefDesc;
   142         string masters;
   146         string masters;
   143         Verbosity verbosity;
   147         Verbosity verbosity;
   144         int alias;
   148         string aliases;
   145         int position;
   149         string positions;
   146         int domain;
   150         string domains;
   147         string dataType;
   151         string dataType;
   148         bool force;
   152         bool force;
   149         string outputFile;
   153         string outputFile;
   150 
   154 
   151         Command();
   155         Command();
   172     return verbosity;
   176     return verbosity;
   173 }
   177 }
   174 
   178 
   175 /****************************************************************************/
   179 /****************************************************************************/
   176 
   180 
   177 inline int Command::getAlias() const
       
   178 {
       
   179     return alias;
       
   180 }
       
   181 
       
   182 /****************************************************************************/
       
   183 
       
   184 inline int Command::getPosition() const
       
   185 {
       
   186     return position;
       
   187 }
       
   188 
       
   189 /****************************************************************************/
       
   190 
       
   191 inline int Command::getDomain() const
       
   192 {
       
   193     return domain;
       
   194 }
       
   195 
       
   196 /****************************************************************************/
       
   197 
       
   198 inline const string &Command::getDataType() const
   181 inline const string &Command::getDataType() const
   199 {
   182 {
   200     return dataType;
   183     return dataType;
   201 }
   184 }
   202 
   185