HEBI C++ API  3.9.0
version.hpp
Go to the documentation of this file.
1 #pragma once
2 
3 namespace hebi {
4 
9 class VersionNumber {
10 public:
11  VersionNumber(int major, int minor, int revision) : major_(major), minor_(minor), revision_(revision) {}
12  int getMajor() { return major_; }
13  int getMinor() { return minor_; }
14  int getRevision() { return revision_; }
15 
16 private:
17  int major_;
18  int minor_;
19  int revision_;
20 };
21 
26 VersionNumber getCVersion();
27 
31 VersionNumber getCppVersion();
32 
33 } // namespace hebi
VersionNumber(int major, int minor, int revision)
Definition: version.hpp:11
Definition: arm.cpp:8
VersionNumber getCVersion()
Returns the version numbers for the HEBI C API that is wrapped by this HEBI C++ API.
Definition: version.cpp:24
int getRevision()
Definition: version.hpp:14
int getMajor()
Definition: version.hpp:12
int getMinor()
Definition: version.hpp:13
VersionNumber getCppVersion()
Returns the version numbers for the HEBI C++ API.
Definition: version.cpp:30
A simple structure to hold a standard semantic versioning version number.
Definition: version.hpp:9