Error object returned by the complex_factory::objreader functions. More...
#include <factory/objreader.h>
Public Types | |
enum | Type { NO_ERRORS, BAD_NUMBER_OF_DIMENSIONS, FILE_FORMAT, DOUBLE_EXPECTED, INTEGER_EXPECTED, INVALID_FACE, CANNOT_OPEN_FILE } |
Type of the error. More... | |
Public Member Functions | |
ObjReaderError (const ObjReaderError ©) | |
ObjReaderError (Type t, QString msg) | |
ObjReaderError (Type t) | |
operator bool () | |
Convert to true if the object correspond to an error. | |
virtual QString | string () |
Returns a human-readable string describing the error. | |
virtual int | type () |
Returns the type of the error. | |
Protected Member Functions | |
void | initFromType () |
Protected Attributes | |
QString | _string |
Type | _type |
Error object returned by the complex_factory::objreader functions.
Definition at line 30 of file objreader.h.
Type of the error.
Definition at line 36 of file objreader.h.
complex_factory::ObjReaderError::operator bool | ( | ) | [inline] |
Convert to true if the object correspond to an error.
Definition at line 68 of file objreader.h.
virtual QString complex_factory::ObjReaderError::string | ( | ) | [inline, virtual] |
Returns a human-readable string describing the error.
Definition at line 58 of file objreader.h.
virtual int complex_factory::ObjReaderError::type | ( | ) | [inline, virtual] |