JSCDataModel.cpp File Reference
#include "uscxml/Common.h"
#include "uscxml/util/URL.h"
#include "uscxml/util/String.h"
#include "JSCDataModel.h"
#include "uscxml/messages/Event.h"
#include "uscxml/util/DOM.h"
#include "uscxml/interpreter/Logging.h"
#include <vector>
#include <string>
#include <boost/algorithm/string.hpp>
#include "JSCDOM.cpp.inc"
Include dependency graph for JSCDataModel.cpp:

Macros

#define EVENT_STRING_OR_UNDEF(field, cond)
 

Functions

static XMLCh * JS2XMLString (JSValueRef input, JSContextRef context)
 
JSValueRef uscxml::JSCNodeListGetPropertyCallback (JSContextRef context, JSObjectRef object, JSStringRef propertyName, JSValueRef *exception)
 
bool uscxml::JSCNodeListHasPropertyCallback (JSContextRef ctx, JSObjectRef object, JSStringRef propertyName)
 
static JSValueRef XMLString2JS (const XMLCh *input, JSContextRef context)
 

Detailed Description

Macro Definition Documentation

#define EVENT_STRING_OR_UNDEF (   field,
  cond 
)
Value:
JSStringRef field##Name = JSStringCreateWithUTF8CString( #field ); \
JSStringRef field##Val = JSStringCreateWithUTF8CString(event.field.c_str()); \
JSObjectSetProperty(_ctx, \
eventObj, \
field##Name, \
(cond ? JSValueMakeString(_ctx, field##Val) : JSValueMakeUndefined(_ctx)), \
0, \
&exception); \
JSStringRelease(field##Name); \
JSStringRelease(field##Val); \
if (exception) \
handleException(exception);