8 #ifndef META_OCEAN_INTERACTION_JS_DEVICE_OBJECT_H
9 #define META_OCEAN_INTERACTION_JS_DEVICE_OBJECT_H
76 static inline const char* objectName();
118 return "DeviceObject";
MajorType
Definition of all major device types.
Definition: devices/Device.h:38
This class is a lightweight helper class for device objects to allow event callback handling.
Definition: JSDevice.h:35
This class implements a wrapper for a JavaScript DeviceObject object.
Definition: JSDeviceObject.h:29
AccessorId
Definition of ids for individual accessors.
Definition: JSDeviceObject.h:39
@ AI_NAME
Definition: JSDeviceObject.h:40
static std::string translateMajorType(const Devices::Device::MajorType majorType)
Translates a major type value into a string holding the major type.
static int translateMinorType(const Devices::Device::MajorType majorType, const std::string &minorType)
Translates a string holding a device minor type into the minor type value.
FunctionId
Definition of ids for individual functions.
Definition: JSDeviceObject.h:48
@ FI_IS_INVALID
Definition: JSDeviceObject.h:58
@ FI_SET_FOUND_OBJECT_EVENT_FUNCTION
Definition: JSDeviceObject.h:53
@ FI_START
Definition: JSDeviceObject.h:60
@ FI_SET_LOST_OBJECT_EVENT_FUNCTION
Definition: JSDeviceObject.h:54
@ FI_PAUSE
Definition: JSDeviceObject.h:61
@ FI_INPUT
Definition: JSDeviceObject.h:50
@ FI_SAMPLE
Definition: JSDeviceObject.h:51
@ FI_IS_VALID
Definition: JSDeviceObject.h:57
@ FI_FREQUENCY
Definition: JSDeviceObject.h:49
@ FI_OBJECT_ID
Definition: JSDeviceObject.h:66
@ FI_OBJECT_DESCRIPTIONS
Definition: JSDeviceObject.h:65
@ FI_STOP
Definition: JSDeviceObject.h:62
@ FI_SET_INPUT
Definition: JSDeviceObject.h:55
@ FI_REGISTER_OBJECT
Definition: JSDeviceObject.h:64
static void createFunctionTemplate()
Creates the function template and object template for this object.
static std::string translateMinorType(const Devices::Device::MajorType majorType, const int minorType)
Translates a minor type into a string holding the minor type.
static Devices::Device::MajorType translateMajorType(const std::string &majorType)
Translates a string holding a device major type into the major type value.
static const char * objectName()
Returns the JavaScript name of this object.
Definition: JSDeviceObject.h:116
This class implements the java script interaction library object.
Definition: JSLibrary.h:32
This class implements the base class for all native wrapper of JavaScript objects.
Definition: JSObject.h:31
The namespace covering the entire Ocean framework.
Definition: Accessor.h:15