91 static void read(std::istream& in);
108 static std::string
buffer();
185 bool match(std::istream& in);
190 std::string
string()
const;
216 static bool isClear_;
226 static bool isMatched_;
229 static std::string buffer_;
262 {
return isRequired_; }
275 {
return isMatched_; }
A label string in a file format.
std::string string() const
Return label string.
friend std::istream & operator>>(std::istream &in, Label label)
Extractor for Label.
static std::string buffer()
Get the string that is currently in the input buffer.
static const int LabelWidth
Width of label field in file output format.
static bool isMatched()
Did the most recent attempt to match a Label succeed?
static void read(std::istream &in)
Read a string without checking its value.
static void clear()
Clear the input buffer.
virtual ~Label()
Destructor.
bool match(std::istream &in)
Read and attempt to match next word in an input stream.
void setString(std::string string)
Set the label string.
void setIsRequired(bool isRequired)
Set the isRequired boolean flag.
bool isRequired() const
Is this the label for a required component?
static void setIsMatched(bool isMatched)
Explicitly set the isMatched flag.
static bool isClear()
Is the input buffer clear?
friend std::ostream & operator<<(std::ostream &out, Label label)
Inserter for Label.
File containing preprocessor macros for error handling.
Utility classes for scientific computation.
std::istream & operator>>(std::istream &in, Pair< Data > &pair)
Input a Pair from an istream.
std::ostream & operator<<(std::ostream &out, const Pair< Data > &pair)
Output a Pair to an ostream, without line breaks.