P4C
The P4 Compiler
Loading...
Searching...
No Matches
run_id.h
1
19#ifndef _BACKENDS_TOFINO_BF_P4C_COMMON_RUN_ID_H_
20#define _BACKENDS_TOFINO_BF_P4C_COMMON_RUN_ID_H_
21
22#include <string>
23
24class RunId {
25 public:
26 static const std::string &getId() {
27 static RunId instance;
28 return instance._runId;
29 }
30
31 private:
32 std::string _runId;
33 RunId();
34
35 public:
36 // disable any other constructors
37 RunId(RunId const &) = delete;
38 void operator=(RunId const &) = delete;
39};
40
41#endif /* _BACKENDS_TOFINO_BF_P4C_COMMON_RUN_ID_H_ */
Definition run_id.h:24