Sirikata
Classes | Namespaces | Defines | Typedefs
liboh/plugins/js/JSObjectStructs/JSTimerStruct.hpp File Reference
#include "../JSUtil.hpp"
#include "../EmersonScript.hpp"
#include "JSContextStruct.hpp"
#include <v8.h>
#include <sirikata/core/network/IOTimer.hpp>
#include "JSSuspendable.hpp"
#include <sirikata/core/util/Liveness.hpp>
#include "../JSCtx.hpp"
Include dependency graph for JSTimerStruct.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  Sirikata::JS::JSTimerStruct
struct  Sirikata::JS::JSTimerLivenessHolder

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 INLINE_TIMER_CONV_ERROR(toConvert, whereError, whichArg, whereWriteTo)

Typedefs

typedef std::map
< JSTimerStruct *, int > 
Sirikata::JS::TimerMap
typedef TimerMap::iterator Sirikata::JS::TimerIter

Define Documentation

#define INLINE_TIMER_CONV_ERROR (   toConvert,
  whereError,
  whichArg,
  whereWriteTo 
)
Value:
JSTimerStruct* whereWriteTo;                                                   \
    {                                                                      \
        String _errMsg = "In " #whereError "cannot convert " #whichArg " to timer struct";     \
        whereWriteTo = JSTimerStruct::decodeTimerStruct(toConvert,_errMsg); \
        if (whereWriteTo == NULL) \
            return v8::ThrowException(v8::Exception::Error(v8::String::New(_errMsg.c_str(), _errMsg.length()))); \
    }