diff options
author | Morgan Deters <mdeters@gmail.com> | 2012-03-09 21:10:17 +0000 |
---|---|---|
committer | Morgan Deters <mdeters@gmail.com> | 2012-03-09 21:10:17 +0000 |
commit | 84f26af22566f7c10dea45b399b944cb50b5e317 (patch) | |
tree | 68fbe22665cc09f46c321c6132e49dabbc15c337 /src/util/output.cpp | |
parent | f29ea80fb3e238278a721d79077c9087bccbac0b (diff) |
Some work on the dump infrastructure to support portfolio work.
Dump("foo") << FooCommand(...);
now "dumps" the textual representation of the command (in the current
output language) to a file, IF dumping is on at configure-time, AND the
"muzzle" feature is off, AND the "foo" flag is turned on for the dump
stream during this run.
If it's a portfolio build, the above will also store the command in a
CommandSequence, IF the "foo" flag is turned on for the dump stream
during this run. This is done even if the muzzle is on.
This commit also cleans up some code that used the dump feature (in arrays,
particularly).
Diffstat (limited to 'src/util/output.cpp')
-rw-r--r-- | src/util/output.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/util/output.cpp b/src/util/output.cpp index 3823f7be6..48a7d51fd 100644 --- a/src/util/output.cpp +++ b/src/util/output.cpp @@ -40,8 +40,8 @@ MessageC MessageChannel CVC4_PUBLIC (&cout); NoticeC NoticeChannel CVC4_PUBLIC (&cout); ChatC ChatChannel CVC4_PUBLIC (&cout); TraceC TraceChannel CVC4_PUBLIC (&cout); -std::ostream DumpC::dump_cout(cout.rdbuf());// copy cout stream buffer -DumpC DumpChannel CVC4_PUBLIC (&DumpC::dump_cout); +std::ostream DumpOutC::dump_cout(cout.rdbuf());// copy cout stream buffer +DumpOutC DumpOutChannel CVC4_PUBLIC (&DumpOutC::dump_cout); #ifndef CVC4_MUZZLE @@ -159,7 +159,7 @@ int TraceC::printf(std::string tag, const char* fmt, ...) { # ifdef CVC4_DUMPING -int DumpC::printf(const char* tag, const char* fmt, ...) { +int DumpOutC::printf(const char* tag, const char* fmt, ...) { if(d_tags.find(string(tag)) == d_tags.end()) { return 0; } @@ -174,7 +174,7 @@ int DumpC::printf(const char* tag, const char* fmt, ...) { return retval; } -int DumpC::printf(std::string tag, const char* fmt, ...) { +int DumpOutC::printf(std::string tag, const char* fmt, ...) { if(d_tags.find(tag) == d_tags.end()) { return 0; } |