Alternaria
fit cylinders and ellipsoids to fungus
|
Abstract class used to print objects and their members. More...
#include <printable.h>
Public Member Functions | |
virtual void | print (std::ostream &out) const =0 |
Prints this Printable to an output stream. | |
virtual | ~Printable () |
Deletes this Printable. | |
Static Public Member Functions | |
static const char * | get_member_value (const char *member_name, std::istream &in) throw (jwscxx::base::Arg_error, jwscxx::base::IO_error) |
Returns the value for a printed member. | |
static const char * | get_next_member_value (const char *member_value) |
Returns the next value of a printed member. |
Abstract class used to print objects and their members.
The format for printed objects is
member name: member value
Definition at line 68 of file printable.h.
virtual Printable::~Printable | ( | ) | [inline, virtual] |
Deletes this Printable.
Definition at line 77 of file printable.h.
virtual void Printable::print | ( | std::ostream & | out | ) | const [pure virtual] |
Prints this Printable to an output stream.
Implemented in Imaging_model, PSF_model, and Alternaria.
const char * Printable::get_member_value | ( | const char * | member_name, |
std::istream & | in | ||
) | throw (jwscxx::base::Arg_error, jwscxx::base::IO_error) [static] |
Returns the value for a printed member.
Reads a line off the input stream as a member with format:
member name: member value
member_name | Name of the member to get the value of. |
in | Input stream to read the member line from. |
jwscxx::base::Arg_error | Either the member is not the one named or it is not formatted properly. |
jwscxx::base::IO_error | Could not read a line from the input stream. |
Definition at line 79 of file printable.cpp.
const char * Printable::get_next_member_value | ( | const char * | member_value | ) | [static] |
Returns the next value of a printed member.
The values must be separated by spaces.
member_value | Pointer to the current member value. |
Definition at line 135 of file printable.cpp.