|
Asylo
|
A helper class for formatting "expr (V1 vs. V2)" in a CHECK_XX statement. More...
#include <logging.h>
Public Member Functions | |
| CheckOpMessageBuilder (const char *exprtext) | |
| Constructs an object to format a CheckOp message. More... | |
| ~CheckOpMessageBuilder () | |
| Deletes "stream_". More... | |
| std::ostream * | ForVar1 () |
| Gets the output stream for the first argument of the message. More... | |
| std::ostream * | ForVar2 () |
| Gets the output stream for writing the argument of the message. More... | |
| std::string * | NewString () |
| Gets the built string contents. More... | |
A helper class for formatting "expr (V1 vs. V2)" in a CHECK_XX statement.
See MakeCheckOpString for sample usage.
|
explicit |
Constructs an object to format a CheckOp message.
This constructor initializes the message first with exprtext followed by " (".
| exprtext | A string representation of the code in file at line. |
| asylo::CheckOpMessageBuilder::~CheckOpMessageBuilder | ( | ) |
Deletes "stream_".
|
inline |
Gets the output stream for the first argument of the message.
| std::ostream* asylo::CheckOpMessageBuilder::ForVar2 | ( | ) |
Gets the output stream for writing the argument of the message.
This writes " vs. " to the stream first.
| std::string* asylo::CheckOpMessageBuilder::NewString | ( | ) |
Gets the built string contents.
The stream is finished with an added ")".