P4C
The P4 Compiler
Loading...
Searching...
No Matches
backends/p4fmt/options.h
1#ifndef BACKENDS_P4FMT_OPTIONS_H_
2#define BACKENDS_P4FMT_OPTIONS_H_
3
4#include "frontends/common/options.h"
5#include "frontends/common/parser_options.h"
6
7namespace P4::P4Fmt {
8
9class P4fmtOptions : public CompilerOptions {
10 public:
11 P4fmtOptions();
12 virtual ~P4fmtOptions() = default;
13 P4fmtOptions(const P4fmtOptions &) = default;
14 P4fmtOptions(P4fmtOptions &&) = delete;
15 P4fmtOptions &operator=(const P4fmtOptions &) = default;
16 P4fmtOptions &operator=(P4fmtOptions &&) = delete;
17
18 const std::filesystem::path &outputFile() const;
19
20 private:
22 std::filesystem::path outFile;
23};
24
25using P4FmtContext = P4CContextWithOptions<P4fmtOptions>;
26
27} // namespace P4::P4Fmt
28
29#endif /* BACKENDS_P4FMT_OPTIONS_H_ */
Definition parser_options.h:174