#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) |
Detailed Description
- Copyright
- Simplified BSD
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);