Tekkotsu Homepage
Demos
Overview
Downloads
Dev. Resources
Reference
Credits

plist::OutputSelector::bad_value Class Reference

#include <plistSpecialty.h>

Inheritance diagram for plist::OutputSelector::bad_value:

Detailed Description

Definition at line 31 of file plistSpecialty.h.

List of all members.

Public Member Functions

 bad_value (const std::string &val, bool range=false) throw ()
 constructor for invalid/unknown output names, or known ones which are out-of-range if range is true
 bad_value (unsigned int val, bool range=false) throw ()
 constructor for invalid numeric output offsets, or known ones which are out-of-range if range is true
 bad_value (const std::string &strVal, unsigned int intVal) throw ()
 constructor for valid offsets which are out-of-range for this selector
virtual ~bad_value () throw ()
 destructor
virtual const char * what () const throw ()
 returns an error message describing the error
void initMessage ()
 initializes message based on member fields

Public Attributes

std::string strValue
 the string value which caused the exception (may be empty if a numeric value was used, or an empty value was passed, see intValue to differentiate)
unsigned int intValue
 the numeric value which caused the exception, -1U if strValue was invalid or empty
bool rangeError
 true if the output was recognized as a known output, but out-of-range for this selector
std::string message
 the string which be returned in what()

Constructor & Destructor Documentation

plist::OutputSelector::bad_value::bad_value ( const std::string &  val,
bool  range = false 
) throw () [explicit]

constructor for invalid/unknown output names, or known ones which are out-of-range if range is true

Definition at line 34 of file plistSpecialty.h.

plist::OutputSelector::bad_value::bad_value ( unsigned int  val,
bool  range = false 
) throw () [explicit]

constructor for invalid numeric output offsets, or known ones which are out-of-range if range is true

Definition at line 36 of file plistSpecialty.h.

plist::OutputSelector::bad_value::bad_value ( const std::string &  strVal,
unsigned int  intVal 
) throw ()

constructor for valid offsets which are out-of-range for this selector

Definition at line 38 of file plistSpecialty.h.

virtual plist::OutputSelector::bad_value::~bad_value (  )  throw () [virtual]

destructor

Definition at line 40 of file plistSpecialty.h.


Member Function Documentation

void plist::OutputSelector::bad_value::initMessage (  ) 

initializes message based on member fields

Definition at line 17 of file plistSpecialty.cc.

Referenced by bad_value().

virtual const char* plist::OutputSelector::bad_value::what (  )  const throw () [virtual]

returns an error message describing the error

Definition at line 42 of file plistSpecialty.h.


Member Data Documentation

the numeric value which caused the exception, -1U if strValue was invalid or empty

Definition at line 45 of file plistSpecialty.h.

Referenced by initMessage().

the string which be returned in what()

Definition at line 47 of file plistSpecialty.h.

Referenced by initMessage(), and what().

true if the output was recognized as a known output, but out-of-range for this selector

Definition at line 46 of file plistSpecialty.h.

Referenced by initMessage().

the string value which caused the exception (may be empty if a numeric value was used, or an empty value was passed, see intValue to differentiate)

Definition at line 44 of file plistSpecialty.h.

Referenced by initMessage().


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

Tekkotsu v5.1CVS
Generated Mon May 9 04:59:25 2016 by Doxygen 1.6.3