File: Version.hpp

package info (click to toggle)
consensuscore 1.1.1%2Bdfsg-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 3,404 kB
  • sloc: cpp: 38,940; python: 2,083; ansic: 542; sh: 184; makefile: 82; cs: 10
file content (26 lines) | stat: -rw-r--r-- 433 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// Author: David Alexander

#include <boost/tuple/tuple.hpp>
#include <string>
#include <vector>

#pragma once

#define API_MAJOR 1
#define API_MINOR 0
#define API_PATCH 2

namespace ConsensusCore {
class Version
{
public:
    static int Major();
    static int Minor();
    static int Patch();

    // Sadly SWIG doesn't support boost::tuple
    static std::vector<int> VersionTuple();

    static std::string VersionString();
};
}