1 |
|
/****************************************************************************** |
2 |
|
* Top contributors (to current version): |
3 |
|
* Mathias Preiner, Morgan Deters |
4 |
|
* |
5 |
|
* This file is part of the cvc5 project. |
6 |
|
* |
7 |
|
* Copyright (c) 2009-2021 by the authors listed in the file AUTHORS |
8 |
|
* in the top-level source directory and their institutional affiliations. |
9 |
|
* All rights reserved. See the file COPYING in the top-level source |
10 |
|
* directory for licensing information. |
11 |
|
* **************************************************************************** |
12 |
|
* |
13 |
|
* Output utility classes and functions. |
14 |
|
*/ |
15 |
|
|
16 |
|
#include "base/output.h" |
17 |
|
|
18 |
|
#include <iostream> |
19 |
|
|
20 |
|
namespace cvc5 { |
21 |
|
|
22 |
|
/* Definitions of the declared globals from output.h... */ |
23 |
|
|
24 |
9782 |
null_streambuf null_sb; |
25 |
9782 |
std::ostream null_os(&null_sb); |
26 |
|
|
27 |
|
NullC nullStream; |
28 |
|
|
29 |
9782 |
const std::string Cvc5ostream::s_tab = " "; |
30 |
9782 |
const int Cvc5ostream::s_indentIosIndex = std::ios_base::xalloc(); |
31 |
|
|
32 |
9782 |
DebugC DebugChannel(&std::cout); |
33 |
9782 |
WarningC WarningChannel(&std::cerr); |
34 |
9782 |
MessageC MessageChannel(&std::cout); |
35 |
9782 |
NoticeC NoticeChannel(&null_os); |
36 |
9782 |
ChatC ChatChannel(&null_os); |
37 |
9782 |
TraceC TraceChannel(&std::cout); |
38 |
9782 |
std::ostream DumpOutC::dump_cout(std::cout.rdbuf()); // copy cout stream buffer |
39 |
9782 |
DumpOutC DumpOutChannel(&DumpOutC::dump_cout); |
40 |
|
|
41 |
29346 |
} // namespace cvc5 |