Simpatico  v1.10
List of all members | Public Member Functions
Util::OptionalLabel Class Reference

Detailed Description

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>

Inheritance diagram for Util::OptionalLabel:
Util::Label

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...
 
- Public Member Functions inherited from Util::Label
 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 Public Member Functions inherited from Util::Label
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 Public Attributes inherited from Util::Label
static const int LabelWidth = 20
 Width of label field in file output format. More...
 

Constructor & Destructor Documentation

Util::OptionalLabel::OptionalLabel ( )

Default constructor.

Definition at line 16 of file OptionalLabel.cpp.

Util::OptionalLabel::OptionalLabel ( std::string  string)
explicit

Constructor.

Parameters
stringlabel string that precedes value in file format

Definition at line 23 of file OptionalLabel.cpp.

Util::OptionalLabel::OptionalLabel ( const char *  string)
explicit

Constructor.

Parameters
stringlabel string that precedes value in file format

Definition at line 30 of file OptionalLabel.cpp.

Util::OptionalLabel::OptionalLabel ( const OptionalLabel other)

Copy constructor.

Parameters
otherOptionalLabel being cloned.

Definition at line 37 of file OptionalLabel.cpp.

Util::OptionalLabel::~OptionalLabel ( )
virtual

Destructor.

Definition at line 44 of file OptionalLabel.cpp.


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