Sirikata
|
#include <sirikata/oh/HostedObject.hpp>
#include <v8.h>
#include "JSContextStruct.hpp"
#include "JSSuspendable.hpp"
#include "JSPositionListener.hpp"
#include <sirikata/core/util/Nullable.hpp>
#include "../JSObjects/JSObjectsUtils.hpp"
#include "JSCapabilitiesConsts.hpp"
#include "../JSCtx.hpp"
Go to the source code of this file.
Classes | |
struct | Sirikata::JS::PresStructRestoreParams |
struct | Sirikata::JS::JSPresenceStruct |
Namespaces | |
namespace | Sirikata |
Note: All the classes provided in this file are thin wrappers around the corresponding classes in ASIO. | |
namespace | Sirikata::JS |
Defines | |
#define | checkCleared(funcName) |
#define | INLINE_CHECK_CAPABILITY_ERROR(whatCap, where) |
#define | INLINE_CHECK_IS_CONNECTED_ERROR(where) |
#define | INLINE_PRESENCE_CONV_ERROR(toConvert, whereError, whichArg, whereWriteTo) |
Typedefs | |
typedef std::vector < JSPresenceStruct * > | Sirikata::JS::JSPresVec |
typedef JSPresVec::iterator | Sirikata::JS::JSPresVecIter |
#define checkCleared | ( | funcName | ) |
#define INLINE_CHECK_CAPABILITY_ERROR | ( | whatCap, | |
where | |||
) |
{ \ if (! mContext->jsObjScript->checkCurCtxtHasCapability(this, whatCap)) \ V8_EXCEPTION_CSTR("Error in " #where " you do not have the capability for " #whatCap " on this presence."); \ }
Referenced by Sirikata::JS::JSPresenceStruct::runSimulation(), Sirikata::JS::JSPresenceStruct::setOrientationFunction(), Sirikata::JS::JSPresenceStruct::setOrientationVelFunction(), Sirikata::JS::JSPresenceStruct::setQueryFunction(), Sirikata::JS::JSPresenceStruct::setVisualFunction(), Sirikata::JS::JSPresenceStruct::setVisualScaleFunction(), Sirikata::JS::JSPresenceStruct::struct_setPosition(), and Sirikata::JS::JSPresenceStruct::struct_setVelocity().
#define INLINE_CHECK_IS_CONNECTED_ERROR | ( | where | ) |
if (! isConnected) \ V8_EXCEPTION_CSTR("Error in " #where " presence was disconnected when called.");
Referenced by Sirikata::JS::JSPresenceStruct::setOrientationFunction(), Sirikata::JS::JSPresenceStruct::setOrientationVelFunction(), Sirikata::JS::JSPresenceStruct::setPhysicsFunction(), Sirikata::JS::JSPresenceStruct::setQueryFunction(), Sirikata::JS::JSPresenceStruct::setVisualFunction(), Sirikata::JS::JSPresenceStruct::setVisualScaleFunction(), Sirikata::JS::JSPresenceStruct::struct_getQuery(), Sirikata::JS::JSPresenceStruct::struct_setPosition(), and Sirikata::JS::JSPresenceStruct::struct_setVelocity().
#define INLINE_PRESENCE_CONV_ERROR | ( | toConvert, | |
whereError, | |||
whichArg, | |||
whereWriteTo | |||
) |
JSPresenceStruct* whereWriteTo; \ { \ String _errMsg = "In " #whereError "cannot convert " #whichArg " to presence struct"; \ whereWriteTo = JSSystemStruct::decodeSystemStruct(toConvert,_errMsg); \ if (whereWriteTo == NULL) \ return v8::ThrowException(v8::Exception::Error(v8::String::New(_errMsg.c_str(), _errMsg.length()))); \ }