Simpatico
v1.10
|
An optional Label string in a file format.
A subclass of Label that is always optional.
Definition at line 23 of file OptionalLabel.h.
#include <OptionalLabel.h>
Public Member Functions | |
OptionalLabel () | |
Default constructor. More... | |
OptionalLabel (std::string string) | |
Constructor. More... | |
OptionalLabel (const char *string) | |
Constructor. More... | |
OptionalLabel (const OptionalLabel &other) | |
Copy constructor. More... | |
virtual | ~OptionalLabel () |
Destructor. More... | |
![]() | |
Label (bool isRequired=true) | |
Constructor. More... | |
Label (std::string string, bool isRequired=true) | |
Constructor. More... | |
Label (const char *string, bool isRequired=true) | |
Constructor. More... | |
Label (const Label &other) | |
Copy constructor. More... | |
virtual | ~Label () |
Destructor. More... | |
void | setString (std::string string) |
Set the label string. More... | |
bool | match (std::istream &in) |
Read and attempt to match next word in an input stream. More... | |
std::string | string () const |
Return label string. More... | |
bool | isRequired () const |
Is this the label for a required component? More... | |
Additional Inherited Members | |
![]() | |
static void | clear () |
Reset buffer and flags to initial state. More... | |
static bool | isClear () |
Is the input buffer clear? More... | |
static bool | isMatched () |
Did the most recent attempt to match a Label succeed? More... | |
![]() | |
static const int | LabelWidth = 20 |
Width of label field in file output format. More... | |
Util::OptionalLabel::OptionalLabel | ( | ) |
Default constructor.
Definition at line 16 of file OptionalLabel.cpp.
|
explicit |
Constructor.
string | label string that precedes value in file format |
Definition at line 23 of file OptionalLabel.cpp.
|
explicit |
Constructor.
string | label string that precedes value in file format |
Definition at line 30 of file OptionalLabel.cpp.
Util::OptionalLabel::OptionalLabel | ( | const OptionalLabel & | other | ) |
Copy constructor.
other | OptionalLabel being cloned. |
Definition at line 37 of file OptionalLabel.cpp.
|
virtual |
Destructor.
Definition at line 44 of file OptionalLabel.cpp.