Jpp  19.1.0-rc.1
the software that should make you happy
JGITTags.cc
Go to the documentation of this file.
1 #include "Jeep/JGITTags.hh"
2 
3 namespace JEEP {}
4 namespace JPP { using namespace JEEP; }
5 
6 namespace JEEP {
7 
9  {
10  using namespace std;
11  using namespace JPP;
12 
13  static JGITTags_t buffer;
14 
15  if (buffer.empty()) {
16 
17 #ifdef GIT_TAGS
18 
19  istringstream in(GIT_TAGS);
20 
21  JDate<'-'> date;
22  string tag;
23 
24  while (in >> tag >> date) {
25  buffer.insert(make_pair(date, tag));
26  }
27 #endif
28  }
29 
30  return buffer;
31  }
32 }
33 
Dates GIT tags.
General puprpose classes and methods.
const JGITTags_t & getGITTags()
Get GIT dated tags.
Definition: JGITTags.cc:8
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
Definition: JSTDTypes.hh:14
Auxiliary class for simple date.
Definition: JDate.hh:41