JSCDataModel.h
Go to the documentation of this file.
94 static JSValueRef jsIn(JSContextRef ctx, JSObjectRef function, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef* exception);
96 static JSValueRef jsPrint(JSContextRef ctx, JSObjectRef function, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef* exception);
98 static JSValueRef jsExtension(JSContextRef ctx, JSObjectRef function, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef* exception);
101 static bool jsIOProcessorHasProp(JSContextRef ctx, JSObjectRef object, JSStringRef propertyName);
102 static JSValueRef jsIOProcessorGetProp(JSContextRef ctx, JSObjectRef object, JSStringRef propertyName, JSValueRef* exception);
103 static void jsIOProcessorListProps(JSContextRef ctx, JSObjectRef object, JSPropertyNameAccumulatorRef propertyNames);
107 static JSValueRef jsInvokerGetProp(JSContextRef ctx, JSObjectRef object, JSStringRef propertyName, JSValueRef* exception);
108 static void jsInvokerListProps(JSContextRef ctx, JSObjectRef object, JSPropertyNameAccumulatorRef propertyNames);
virtual bool isValidSyntax(const std::string &expr)
Determine whether a given string constitutes valid syntax in the data-model's language.
Definition: JSCDataModel.cpp:657
virtual bool isDeclared(const std::string &expr)
Determine whether a given variable / location is declared.
Definition: JSCDataModel.cpp:669
virtual std::list< std::string > getNames()
Return a list of names to be matched by the datamodel attribute in SCXML.
Definition: JSCDataModel.h:61
Definition: Breakpoint.cpp:26
virtual void setEvent(const Event &event)
Set the given event as _event in the data-model's global scope.
Definition: JSCDataModel.cpp:309
Definition: DataModelImpl.h:61
Abstract base class for all data-model implementations.
Definition: DataModelImpl.h:77
virtual void init(const std::string &location, const Data &data, const std::map< std::string, std::string > &attr=std::map< std::string, std::string >())
Initialize a variable / location in the data-model with a given data object.
Definition: JSCDataModel.cpp:757
virtual void setForeach(const std::string &item, const std::string &array, const std::string &index, uint32_t iteration)
Set a given item to the object at a given index for one iteration.
Definition: JSCDataModel.cpp:631
virtual void addExtension(DataModelExtension *ext)
Register an extension to get data into and out of the data-model.
Definition: JSCDataModel.cpp:112
virtual Data getAsData(const std::string &content)
Return a string as an unevaluated Data object.
Definition: JSCDataModel.cpp:430
virtual Data evalAsData(const std::string &expr)
Return a string as an evaluated Data object.
Definition: JSCDataModel.cpp:419
Definition: Event.h:94
virtual uint32_t getLength(const std::string &expr)
Evaluate the given expression as something iterable and return its length.
Definition: JSCDataModel.cpp:614
virtual std::shared_ptr< DataModelImpl > create(DataModelCallbacks *callbacks)
The Factory wants to instantiate a new instance.
Definition: JSCDataModel.cpp:247
virtual void assign(const std::string &location, const Data &data, const std::map< std::string, std::string > &attr=std::map< std::string, std::string >())
Assign a data object to a location in the data-model.
Definition: JSCDataModel.cpp:723
Definition: Data.h:44
virtual bool evalAsBool(const std::string &expr)
Evaluate a given expression as a boolean.
Definition: JSCDataModel.cpp:681