Jpp  18.1.0
the software that should make you happy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Functions
JDATAQUALITY Namespace Reference

Functions

std::vector< std::stringgetGITTags (const TRegexp &regexp, const JGITTags_t::key_type &date)
 Get selection of GIT tags. More...
 

Function Documentation

std::vector<std::string> JDATAQUALITY::getGITTags ( const TRegexp &  regexp,
const JGITTags_t::key_type &  date 
)
inline

Get selection of GIT tags.

Parameters
regexpregular expression
datedate corresponding to oldest version
Returns
GIT tags

Definition at line 34 of file JDataQuality/JGITTags.hh.

35  {
36  using namespace JPP;
37 
39 
40  const JGITTags_t tags = JEEP::getGITTags();
41 
42  for (JGITTags_t::const_reverse_iterator i = tags.rbegin(); i.base() != tags.lower_bound(date); ++i) {
43  if (TString(i->second.c_str()).Contains(regexp)) {
44  buffer.push_back(getGITVersion(i->second));
45  }
46  }
47 
48  return buffer;
49  }
std::multimap< JDate<'-'>, std::string > JGITTags_t
Type definition of dated GIT tags.
std::string getGITVersion(const std::string &tag)
Get GIT version for given GIT tag.
const JGITTags_t & getGITTags()
Get GIT dated tags.