18 #ifndef __GLF_STATUS_H__ 19 #define __GLF_STATUS_H__ 111 static const char* enumStatusString[];
114 std::string myMessage;
failed to parse a record/header - invalid format.
const char * getStatusMessage() const
Return the status message.
static bool isContinuableStatus(GlfStatus::Status status)
Returns whether or not it is "safe" to keep processing the file after the specified status return...
GlfStatus & operator=(Status newStatus)
Overload operator = to set the glf status type to the passed in status and to clear the message strin...
Status getStatus() const
Return the enum for this status.
unknown result (default value should never be used)
void reset()
Resets this status.
method completed successfully.
void addError(Status newStatus, const char *newMessage)
Adds the specified error message to the status message, setting the status to newStatus if the curren...
bool operator!=(const GlfStatus::Status &compStatus) const
Overload operator != to determine if the passed in type is not equal to this status's type...
bool operator==(const GlfStatus::Status &compStatus) const
Overload operator != to determine if the passed in type is equal to this status's type...
static const char * getStatusString(GlfStatus::Status statusEnum)
Returns the string representation of the specified enum.
method failed due to an I/O issue.
method failed because it was called out of order, like trying to read a file without opening it for r...
Status
Return value enum for the GlfFile class methods.
fail a memory allocation.
This class is used to track the status results of some methods in the GLF classes using the status en...
void setStatus(Status newStatus, const char *newMessage)
Set the status with the specified values.