diff options
author | Abdalrhman Mohamed <32971963+abdoo8080@users.noreply.github.com> | 2020-09-16 12:45:01 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-16 12:45:01 -0500 |
commit | 2c2f05c96e021006275a2bc70b9ede70b280616d (patch) | |
tree | db702d7b8fbd14dd8003b1f03c02b77c89d2fced /src/smt/output_manager.cpp | |
parent | 0534ea1bbee9a3a7049580449ab25025a4f92a9a (diff) |
Dump commands in internal code using command printing functions. (#5040)
This is work towards migrating commands to the new API. Internal code that creates command objects just for dumping is replaced with direct calls to functions that print the those commands.
Diffstat (limited to 'src/smt/output_manager.cpp')
-rw-r--r-- | src/smt/output_manager.cpp | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/src/smt/output_manager.cpp b/src/smt/output_manager.cpp new file mode 100644 index 000000000..a801b7527 --- /dev/null +++ b/src/smt/output_manager.cpp @@ -0,0 +1,35 @@ +/********************* */ +/*! \file output_manager.cpp + ** \verbatim + ** Top contributors (to current version): + ** Abdalrhman Mohamed + ** This file is part of the CVC4 project. + ** Copyright (c) 2009-2020 by the authors listed in the file AUTHORS + ** in the top-level source directory and their institutional affiliations. + ** All rights reserved. See the file COPYING in the top-level source + ** directory for licensing information.\endverbatim + ** + ** \brief Implementation of OutputManager functions. + ** + ** Implementation of OutputManager functions. + **/ + +#include "smt/output_manager.h" + +#include "smt/smt_engine.h" + +namespace CVC4 { + +OutputManager::OutputManager(SmtEngine* smt) : d_smt(smt) {} + +const Printer& OutputManager::getPrinter() const +{ + return *d_smt->getPrinter(); +} + +std::ostream& OutputManager::getDumpOut() const +{ + return *d_smt->getOptions().getOut(); +} + +} // namespace CVC4 |