Changeset 11345


Ignore:
Timestamp:
07/11/11 16:06:07 (13 years ago)
Author:
tbretz
Message:
Implemented a Getter especially for vectors.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/src/Configuration.h

    r11336 r11345  
    132132    template<class T>
    133133        T Get(const std::string &var) const { return fVariables[var].as<T>(); }
     134    template<class T>
     135        std::vector<T> Vec(const std::string &var) const { return Has(var) ? fVariables[var].as<std::vector<T>>() : std::vector<T>(); }
    134136    bool Has(const std::string &var) const { return fVariables.count(var)>0; }
    135137
Note: See TracChangeset for help on using the changeset viewer.