P4C
The P4 Compiler
Loading...
Searching...
No Matches
tofino/bf-asm/version.h
1
17
18
#pragma once
19
#include <string>
20
21
namespace
BFASM
{
22
// Singleton class representing the assembler version
23
class
Version {
24
public
:
25
static
const
std::string getVersion() {
26
static
Version v;
27
return
std::to_string(v.major) +
"."
+ std::to_string(v.minor) +
"."
+
28
std::to_string(v.patch);
29
}
30
31
private
:
32
static
constexpr
int
major = 1;
33
static
constexpr
int
minor = 0;
34
static
constexpr
int
patch = 1;
35
36
Version() {}
37
38
public
:
39
// disable any other constructors
40
Version(Version
const
&) =
delete
;
41
void
operator=(Version
const
&) =
delete
;
42
};
43
44
}
// namespace BFASM
BFASM
Definition
flexible_headers.cpp:22
backends
tofino
bf-asm
version.h
Generated by
1.13.2