22#include <vlpi/entityIdentifier.h>
111 virtual const std::string&
type()
const override;
163 template <
typename T>
220 template <
typename T>
275 virtual const std::string&
type()
const override;
Reader class for decoding values from a byte array.
Definition byteStream.h:42
Writer class for encoding values into a byte array.
Definition byteStream.h:161
Abstract base class for all VREngage messages.
Definition vreMessage.h:50
DtVreMessage()
Default constructor.
Message identifier class for the VREngage messaging system.
Definition vreMessageId.h:35
virtual ~VrfScriptedEntitySetMessage() override
Virtual destructor.
static VrfScriptedEntitySetMessage * create()
Creates a new instance of this message type.
static makVre::DtVreMessageId theMessageId
Static message ID for this message type.
Definition vrfTaskEntityScript.h:304
static DtVreMessage * creator()
Creates a new instance of this message type as a DtVreMessage.
virtual const std::string & type() const override
Get the name of the message type.
static const std::string & theType()
virtual const makVre::DtVreMessageId & messageId() const override
Gets the message ID object.
VrfScriptedEntitySetMessage()
Protected constructor.
static const makVre::DtVreMessageId & theId()
AttributeList myAttributes
List of attributes for this message.
Definition vrfTaskEntityScript.h:233
AttrType getType()
Gets the attribute type for a template parameter type.
AttrType
Enumeration of supported attribute data types.
Definition vrfTaskEntityScript.h:46
@ VECTOR
Vector value (vlVector)
Definition vrfTaskEntityScript.h:51
@ DOUBLE
Double-precision floating point value.
Definition vrfTaskEntityScript.h:49
@ STRING
String value.
Definition vrfTaskEntityScript.h:50
@ INT
Integer value.
Definition vrfTaskEntityScript.h:48
@ ENTITY_ID
Entity identifier (DtEntityIdentifier)
Definition vrfTaskEntityScript.h:52
@ BOOL
Boolean value.
Definition vrfTaskEntityScript.h:47
std::string myScriptName
Name of the script to execute.
Definition vrfTaskEntityScript.h:227
static makVre::DtVreMessage * decode(char *buffer, int length)
Decodes a serialized message.
DtEntityIdentifier myEntityId
Entity identifier of the target entity.
Definition vrfTaskEntityScript.h:224
void addAttribute(const std::string &name, T data)
Adds an attribute to this message.
Definition vrfTaskEntityScript.h:245
virtual void setEntityId(const DtEntityIdentifier &val)
Sets the entity identifier for this message.
virtual int getAttributeCount() const
Gets the number of attributes in this message.
virtual DtEntityIdentifier getEntityId() const
Gets the entity identifier for this message.
virtual int messageSize() const override
Gets the total size of the serialized message in bytes.
static const makVre::DtVreMessageId & theId()
std::vector< BaseAttribute * > AttributeList
Type definition for the list of attributes.
Definition vrfTaskEntityScript.h:230
BaseAttribute * getAttribute(int i)
Gets an attribute at the specified index.
virtual void deserialize(DtStreamReader &reader) override
Deserializes the message from a stream reader.
virtual void serialize(DtStreamWriter &writer) const override
Serializes the message to a stream writer.
virtual void setScriptName(const std::string &script)
Sets the script name for this message.
static makVre::DtVreMessageId theMessageId
Static message ID for this message type.
Definition vrfTaskEntityScript.h:189
static VrfScriptedEntityTaskMessage * create()
Creates a new instance of this message type.
virtual const std::string & type() const override
Get the name of the message type.
virtual std::string getScriptName() const
Gets the script name for this message.
virtual ~VrfScriptedEntityTaskMessage() override
Virtual destructor.
static const std::string & theType()
virtual const makVre::DtVreMessageId & messageId() const override
Gets the message ID object.
static DtVreMessage * creator()
Creates a new instance of this message type as a DtVreMessage.
VrfScriptedEntityTaskMessage()
Protected constructor.
Defines export macros for the VREngage Messages library.
#define VREMESSAGES_DLL
Export/import macro for non-Windows platforms.
Definition export.h:39
Include export definitions for this library.
Definition glsVreMessageUtil.h:49
Templated structure for typed script attributes.
Definition vrfTaskEntityScript.h:77
T value
Value of the attribute.
Definition vrfTaskEntityScript.h:79
Base structure for script attributes.
Definition vrfTaskEntityScript.h:61
AttrType type
Type of the attribute.
Definition vrfTaskEntityScript.h:66
std::string name
Name of the attribute.
Definition vrfTaskEntityScript.h:63
Defines the base class for all VREngage messages.
Defines message identifier class for the VREngage messaging system.