42 Result(std::initializer_list<Message> theMessages);
45 Result(std::initializer_list<PositionMessage> thePositionMessages);
50 Result(std::initializer_list<Message> theMessages,
51 std::initializer_list<PositionMessage> thePositionMessages);
62 bool hasMessage(
const std::string& message)
const;
80 bool hasPositionMessage(
const unsigned int position,
const std::string& message)
const;
99 std::string
toString(
const std::string& prefix)
const;
Collection of Result information for an operation.
const Messages & getMessages() const
std::pair< unsigned int, std::string > PositionMessage
For convenience, we use a pair for the line and message for a position.
bool hasPositionMessage(const unsigned int position, const std::string &message) const
Convenience to test if the positional message has been set at the position.
std::vector< Message > Messages
const PositionMessages & getPositionMessages() const
void addPositionMessage(const unsigned int position, const std::string &message)
Add the positional message.
std::vector< PositionMessage > PositionMessages
void addMessage(const std::string &message)
Add message.
std::string toString() const
bool hasMessage(const std::string &message) const
Convenience to test with message has been set.
Container of Calculator resources.