complex_factory::ObjReaderError Class Reference

Error object returned by the complex_factory::objreader functions. More...

#include <factory/objreader.h>

List of all members.

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 &copy)
 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

Detailed Description

Error object returned by the complex_factory::objreader functions.

Definition at line 30 of file objreader.h.


Member Enumeration Documentation

Type of the error.

Definition at line 36 of file objreader.h.

00037       {
00038         NO_ERRORS, // Due to windows crap, NO_ERROR is not usable (but equivalent?)
00039         BAD_NUMBER_OF_DIMENSIONS,
00040         FILE_FORMAT,
00041         DOUBLE_EXPECTED,
00042         INTEGER_EXPECTED,
00043         INVALID_FACE,
00044         CANNOT_OPEN_FILE
00045       };


Member Function Documentation

complex_factory::ObjReaderError::operator bool (  )  [inline]

Convert to true if the object correspond to an error.

Definition at line 68 of file objreader.h.

00068 { return _type != NO_ERRORS; }

virtual QString complex_factory::ObjReaderError::string (  )  [inline, virtual]

Returns a human-readable string describing the error.

Definition at line 58 of file objreader.h.

00058 { return _string; }

virtual int complex_factory::ObjReaderError::type (  )  [inline, virtual]

Returns the type of the error.

Definition at line 63 of file objreader.h.

00063 { return _type; }


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Generated on Fri May 31 15:38:07 2013 for VVE by  doxygen 1.6.3