QScriptValue REcmaRefPoint::getFlags (QScriptContext* context, QScriptEngine* engine) { //REcmaHelper::functionStart("REcmaRefPoint::getFlags", context, engine); //qDebug() << "ECMAScript WRAPPER: REcmaRefPoint::getFlags"; //QCoreApplication::processEvents(); QScriptValue result = engine->undefinedValue(); // public function: can be called from ECMA wrapper of ECMA shell: RRefPoint* self = getSelf("getFlags", context); //Q_ASSERT(self!=NULL); if (self==NULL) { return REcmaHelper::throwError("self is NULL", context); } if( context->argumentCount() == 0 ){ // prepare arguments: // end of arguments // call C++ function: // return type 'RRefPoint::Flags' RRefPoint::Flags cppResult = self->getFlags(); // return type: RRefPoint::Flags // standard Type result = QScriptValue(cppResult); } else { return REcmaHelper::throwError("Wrong number/types of arguments for RRefPoint.getFlags().", context); } //REcmaHelper::functionEnd("REcmaRefPoint::getFlags", context, engine); return result; }
QCADCORE_EXPORT QDebug operator<<(QDebug dbg, const RRefPoint& v) { dbg.nospace() << "RRefPoint(" << v.x << ", " << v.y << ", " << v.z << ", " << v.valid << ", " << v.getFlags() << ")"; return dbg; }