Grader
Feedback Class Reference

#include <Feedback.h>

Public Member Functions

 Feedback ()=default
 
 Feedback (const std::string &_msg)
 
 Feedback (const std::string &_msg, const std::string &_tag)
 
std::string format ()
 

Public Attributes

std::string msg {""}
 
std::string tag {""}
 

Constructor & Destructor Documentation

§ Feedback() [1/3]

Feedback::Feedback ( )
default

Default constructor.

§ Feedback() [2/3]

Feedback::Feedback ( const std::string &  _msg)
inline

Construct with a message.

§ Feedback() [3/3]

Feedback::Feedback ( const std::string &  _msg,
const std::string &  _tag 
)
inline

Construct with a message and tag.

Member Function Documentation

§ format()

std::string Feedback::format ( )

Format the feedback as "TAG: Message for students." (TAG only shows up if it exists.)

Member Data Documentation

§ msg

std::string Feedback::msg {""}

Message for students.

§ tag

std::string Feedback::tag {""}

Optional tag describing the message.


The documentation for this class was generated from the following files: