summaryrefslogtreecommitdiff
path: root/src/expr/command.h
diff options
context:
space:
mode:
authorMorgan Deters <mdeters@cs.nyu.edu>2013-03-21 14:30:32 -0400
committerMorgan Deters <mdeters@cs.nyu.edu>2013-03-21 16:25:13 -0400
commited40bbae19622ff29e1ca6eb873d20262ed21926 (patch)
treea3f1954f8311cf96a5a30eadf59786e80b8693c4 /src/expr/command.h
parent332772cb9ec225587d2107881d3b6f119e332b84 (diff)
Add the ability to "mute" commands, needed for SMT-LIB compliance.
Diffstat (limited to 'src/expr/command.h')
-rw-r--r--src/expr/command.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/expr/command.h b/src/expr/command.h
index 9877044fb..8e5983403 100644
--- a/src/expr/command.h
+++ b/src/expr/command.h
@@ -193,6 +193,12 @@ protected:
*/
const CommandStatus* d_commandStatus;
+ /**
+ * True if this command is "muted"---i.e., don't print "success" on
+ * successful execution.
+ */
+ bool d_muted;
+
public:
typedef CommandPrintSuccess printsuccess;
@@ -210,6 +216,16 @@ public:
std::string toString() const throw();
/**
+ * If false, instruct this Command not to print a success message.
+ */
+ void setMuted(bool muted) throw() { d_muted = muted; }
+
+ /**
+ * Determine whether this Command will print a success message.
+ */
+ bool isMuted() throw() { return d_muted; }
+
+ /**
* Either the command hasn't run yet, or it completed successfully
* (CommandSuccess, not CommandUnsupported or CommandFailure).
*/
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback