Open Model Railroad Network (OpenMRN)
Loading...
Searching...
No Matches
Revision.hxx
Go to the documentation of this file.
1
28#ifndef _UTILS_REVISION_H_
29#define _UTILS_REVISION_H_
30
31#include <string>
32
35{
36public:
40 static std::string get(unsigned index)
41 {
42 if (index < count())
43 {
44 return REVISION[index];
45 }
46 return "";
47 }
48
51 static size_t count();
52
53private:
54 static const char *REVISION[];
55};
56
57#endif // _UTILS_REVISION_H_
Helper object for obtaining buid revision info.
Definition Revision.hxx:35
static size_t count()
Get the total number of valid revision strings.
static std::string get(unsigned index)
Get a revision out of the revision string array.
Definition Revision.hxx:40