17 std::vector<std::string>
names =
pset.getParameterNamesForType<std::vector<std::string> >();
19 for (std::vector<std::string>::const_iterator it =
names.begin(); it !=
names.end(); ++it)
20 contents_[*it] =
pset.getParameter<std::vector<std::string> >(*it);
26 std::vector<std::string>::const_iterator begin,
27 std::vector<std::string>::const_iterator
end,
30 : collector_(collector), dump_(
dump), special_(special) {
38 if (++iter_.back().first == iter_.back().second)
53 bool special = special_ && iter_.size() == 1;
54 if ((!
line.empty() &&
line[0] ==
'+') || special) {
55 if (++iter_.back().first == iter_.back().second) {
64 if (
pos == collector_->contents_.end())
67 <<
block <<
"\", included via plus sign.";
70 *dump_ <<
"\n####### " <<
block <<
" #######" << std::endl;
72 if (!
pos->second.empty())
75 cache_ = collector_->resolve(
line);
77 *dump_ << cache_ << std::endl;
112 dump <<
"\n####### " <<
block <<
" #######" << std::endl;
122 if (
pos == std::string::npos)
126 if (endpos == std::string::npos)
132 const char *
path = std::getenv(
var.c_str());
static std::string resolve(const std::string &line)
const_iterator begin() const
const_iterator end() const
const std::string names[nVars_]
std::pair< std::vector< std::string >::const_iterator, std::vector< std::string >::const_iterator > IterPair
friend class const_iterator
std::map< std::string, std::vector< std::string > > contents_
std::vector< IterPair > iter_