|
Jafar
|
HelloWorld class. More...
#include <helloWorld.hpp>
Public Member Functions | |
| HelloWorld () | |
| Default constructor. | |
| HelloWorld (const std::string &hello_) | |
| Constructor. | |
| ~HelloWorld () | |
| Destructor. | |
| const std::string & | getHello () const |
| Returns hello. | |
| void | setHello (const std::string &hello_) |
| Set the value of the string to hello_. | |
| void | clearHello () |
| Set hello to the empty string. | |
| void | printHello () |
| Print the string on the standard output. | |
Static Private Member Functions | |
| static bool | checkHello (const std::string &hello_) |
Private Attributes | |
| std::string | hello |
| contains the string to be displayed | |
Friends | |
| std::ostream & | operator<< (std::ostream &s, const HelloWorld &h_) |
| HelloWorld::HelloWorld | ( | const std::string & | hello_ | ) |
Constructor.
| hello_ | the initial string |
Definition at line 14 of file helloWorld.cpp.
References JFR_VDEBUG, and setHello().
| void HelloWorld::printHello | ( | ) |
Print the string on the standard output.
| HelloworldException | try to print an empty string |
Definition at line 45 of file helloWorld.cpp.
References jafar::helloworld::HelloworldException::EMPTY_HELLO, hello, and JFR_ERROR.
| void HelloWorld::setHello | ( | const std::string & | hello_ | ) |
Set the value of the string to hello_.
| jafar::kernel::JafarException | precondition |
| jafar::helloworld::HelloworldFormatException | hello_ must start with "Hello" |
Definition at line 29 of file helloWorld.cpp.
References hello, JFR_DEBUG, and JFR_PRECOND.
Referenced by HelloWorld().
| Generated on Wed Oct 15 2014 00:37:39 for Jafar by doxygen 1.7.6.1 |
|