TF++, Miscellaneous classes and modules in C++:

◆ extract()

Toptionmap tfxx::cmdline::Filename::extract ( const std::string &  key) const

return all entries for a given key

Definition at line 145 of file xcmdline.cc.

References options.

146  {
147  typedef Toptionmap::const_iterator Tomi;
148  typedef std::pair<Tomi, Tomi> Tomipair;
149  Tomipair equalrange=options.equal_range(key);
150  Toptionmap retval(equalrange.first, equalrange.second);
151  return retval;
152  }
Toptionmap options
multimap containing all arguments together with their keys
Definition: xcmdline.h:196
std::multimap< std::string, std::string > Toptionmap
map to hold file options ,A std::multimap is an STL container of pairs. It provides STL iterators to ...
Definition: xcmdline.h:145