Sirikata
Classes | Namespaces | Defines | Typedefs
liboh/plugins/js/JSObjectStructs/JSPresenceStruct.hpp File Reference
#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"
Include dependency graph for JSPresenceStruct.hpp:
This graph shows which files directly or indirectly include this file:

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 Documentation

#define checkCleared (   funcName)
Value:
String fname (funcName);    \
    if (getIsCleared())         \
    {                           \
        String errorMessage = "Error when calling " + fname + " on presence.  The presence has already been cleared."; \
        return v8::ThrowException(v8::Exception::Error(v8::String::New(errorMessage.c_str()))); \
    }
#define INLINE_CHECK_CAPABILITY_ERROR (   whatCap,
  where 
)
#define INLINE_CHECK_IS_CONNECTED_ERROR (   where)
#define INLINE_PRESENCE_CONV_ERROR (   toConvert,
  whereError,
  whichArg,
  whereWriteTo 
)
Value:
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()))); \
    }