GCC Code Coverage Report
Directory: . Exec Total Coverage
File: src/options/outputc.h Lines: 1 1 100.0 %
Date: 2021-09-15 Branches: 0 0 0.0 %

Line Exec Source
1
#include "cvc5_private_library.h"
2
3
#ifndef CVC5__OPTIONS__OUTPUTC_H
4
#define CVC5__OPTIONS__OUTPUTC_H
5
6
#include <iostream>
7
8
#include "cvc5_export.h"
9
#include "base/output.h"
10
#include "options/base_options.h"
11
12
namespace cvc5 {
13
14
class OutputC
15
{
16
 public:
17
9859
  explicit OutputC(std::ostream* os) : d_os(os) {}
18
19
  Cvc5ostream operator()(const options::OutputTag tag) const;
20
  Cvc5ostream operator()(const std::string& tag) const;
21
22
  bool isOn(const options::OutputTag tag) const;
23
  bool isOn(const std::string& tag) const;
24
25
 private:
26
  std::ostream* d_os;
27
28
}; /* class OutputC */
29
30
extern OutputC OutputChannel CVC5_EXPORT;
31
32
#ifdef CVC5_MUZZLE
33
#define Output ::cvc5::__cvc5_true() ? ::cvc5::nullStream : ::cvc5::OutputChannel
34
#else /* CVC5_MUZZLE */
35
#define Output ::cvc5::OutputChannel
36
#endif /* CVC5_MUZZLE */
37
38
}
39
40
#endif /* CVC5__OPTIONS__OUTPUTC_H */