|
| DataErrorType () |
|
| DataErrorType (const std::string &t_name) |
|
| DataErrorType (int t_value) |
|
domain | value () const |
|
| EnumBase ()=delete |
| Default constructor. More...
|
|
| EnumBase (int t_value) |
| Construct from t_value. More...
|
|
| EnumBase (const std::string &t_value) |
| Construct from t_value. More...
|
|
int | lookupValue (std::string t_name) |
| Returns the (integer) value associated with t_name, as determined by case-insensitive comparison to the enumerated names and descriptions. More...
|
|
int | lookupValue (int t_value) |
| Returns t_value if it is in the domain. More...
|
|
bool | operator!= (const DataErrorType &other) const |
|
bool | operator< (const DataErrorType &other) const |
|
bool | operator<= (const DataErrorType &other) const |
|
bool | operator== (const DataErrorType &other) const |
|
bool | operator> (const DataErrorType &other) const |
|
bool | operator>= (const DataErrorType &other) const |
|
void | setValue (int t_value) |
| Set this instance's value to t_value. More...
|
|
int | value () const |
| Returns this instance's current value (as an integer). More...
|
|
std::string | valueDescription () const |
| Returns the description associated with this instance's current value. More...
|
|
std::string | valueName () const |
| Returns the name associated with this instance's current value. More...
|
|
| StaticInitializer () |
|
|
static std::string | enumName () |
|
static const std::map< int,
std::string > & | getDescriptions () |
|
static const std::map
< std::string, int > & | getLookupMap () |
|
static const std::map< int,
std::string > & | getNames () |
|
static const std::set< int > & | getValues () |
| Returns the set of all values in this enum's domain. More...
|
|
static void | initialize () |
|
static std::string | valueDescription (int t_value) |
| Returns the description associated with t_value, if it exists. More...
|
|
static std::string | valueName (int t_value) |
| Returns the name associated with t_value, if it exists. More...
|
|
static void | do_initialize () |
|
Lists the ways in which an Idf field, object, or collection of objects can be invalid as compared to its Idd.
The error types are checked that the following levels. (Each level includes all checks listed at the lower levels as well.)
Strictness::None
- NoIdd (field-level, collection-level) - The input data definition is missing or empty.
- NotInitialized - Data is not ready for use or has been removed from the collection.
Strictness::Draft
- NoIdd (object-level) - The input data definition is missing or empty.
- DataType - A field or object contains data of an unexpected type.
- NumericBound - A numeric field violates a field-level min or max bound.
- NameConflict - Two objects of the same IddObjectType, or with overlapping reference lists, have the same name.
Strictness::Final
- NumericBound - A numeric field violates an (inter-)object-level min or max bound.
- NullAndRequired - A required field or object is null or missing.
- NumberOfFields - A data object has too few or too many fields.
- Duplicate - There are multiple data objects of a type that is supposed to be unique.
See the OPENSTUDIO_ENUM documentation in utilities/core/Enum.hpp. The actual macro call is:
((NoIdd)(input data definition is missing or empty))
((NotInitialized)(data is not ready for use or has been removed from collection))
((DataType)(field-level data is of an incorrect type))
((NumericBound)(numeric data violates a min or max bound))
((NameConflict)(two objects of the same type or with overlapping references also have the same name))
((NullAndRequired)(required data is missing))
((NumberOfFields)(object has too few or too many fields))
((Duplicate)(unique data is duplicated)) );