|
AGXDynamics
2.31.1.0
|
#include <FramePacket.h>
Inheritance diagram for agxNet::StructuredMessage:Public Member Functions | |
| StructuredMessage () | |
| StructuredMessage (const agx::String &uri) | |
| StructuredMessage (const agx::String &uri, const agxJson::Value &header, agxData::BinaryData *binarySegment=nullptr) | |
| template<typename T > | |
| T * | as () |
| Subclass casting. More... | |
| template<typename T > | |
| const T * | as () const |
| template<typename T > | |
| T * | asSafe () |
| Safe subclass casting, return nullptr if template type does not match. More... | |
| template<typename T > | |
| const T * | asSafe () const |
| StructuredMessage * | createResponse () const |
| agxData::BinaryData * | getBinarySegment () |
| const agxData::BinaryData * | getBinarySegment () const |
| agxJson::Value & | getHeader () |
| const agxJson::Value & | getHeader () const |
| agx::UInt32 | getMessageId () const |
| int | getReferenceCount () const |
| agx::UInt32 | getResponseId () const |
| const agx::String & | getUri () const |
| template<typename T > | |
| bool | is () const |
| Subclass test. More... | |
| PreHeader () | |
| void | reference (void *ptr=nullptr) const |
| Explicitly increment the reference count by one, indicating that this object has another pointer which is referencing it. More... | |
| void | setBinarySegment (agxData::BinaryData *binarySegment) |
| void | setHeader (const agxJson::Value &header) |
| void | setResponseId (agx::UInt32 id) |
| void | setUri (const agx::String &uri) |
| void | unreference (void *ptr=nullptr) const |
| Decrement the reference count by one, indicating that a pointer to this object is referencing it. More... | |
| void | unreference_nodelete () const |
| Decrement the reference count by one, indicating that a pointer to this object is referencing it. More... | |
Static Public Member Functions | |
| static StructuredMessage * | parse (const agx::UInt8 *data, size_t numBytes, bool copyBinaryData=false) |
| template<typename T > | |
| static bool | ValidateCast (const Referenced *object) |
Public Attributes | |
| agx::UInt32 | binarySegmentOffset |
| agx::UInt32 | binarySegmentSize |
| agx::UInt32 | headerSize |
| agx::UInt32 | id |
| agx::UInt32 | responseId |
| agx::UInt32 | uriSize |
Static Public Attributes | |
| static const agx::UInt32 | BINARY_SEGMENT_ALIGNMENT = 32 |
| static const agx::UInt32 | STREAM_END_OF_FILE = 0 |
Protected Member Functions | |
| virtual | ~StructuredMessage () |
| void | allocateObserverVector () const |
| void | deleteUsingDeleteHandler () const |
| void | setMessageId (agx::UInt32 id) const |
Static Protected Member Functions | |
| static DeleteHandler * | getDeleteHandler () |
| static void | setDeleteHandler (DeleteHandler *handler) |
| Internal: Set a DeleteHandler to which deletion of all referenced counted objects will be delegated to. More... | |
Protected Attributes | |
| Mutex | m_mutex |
| ObserverContainer | m_observers |
| AtomicValue | m_refCount |
Definition at line 56 of file FramePacket.h.
| agxNet::StructuredMessage::StructuredMessage | ( | ) |
| agxNet::StructuredMessage::StructuredMessage | ( | const agx::String & | uri | ) |
| agxNet::StructuredMessage::StructuredMessage | ( | const agx::String & | uri, |
| const agxJson::Value & | header, | ||
| agxData::BinaryData * | binarySegment = nullptr |
||
| ) |
|
protectedvirtual |
|
protectedinherited |
|
inherited |
Subclass casting.
Template type must match actual type, dynamic_cast assertion will fail otherwise.
Referenced by agx::InternalData::get(), agxVehicle::Track::getNode(), and agx::InternalData::getOrCreate().
|
inherited |
|
inherited |
Safe subclass casting, return nullptr if template type does not match.
Referenced by agxUtil::CollectBodiesAndWiresVisitor::visit().
|
inherited |
| StructuredMessage* agxNet::StructuredMessage::createResponse | ( | ) | const |
|
protectedinherited |
| agxData::BinaryData * agxNet::StructuredMessage::getBinarySegment | ( | ) |
Definition at line 192 of file FramePacket.h.
| const agxData::BinaryData * agxNet::StructuredMessage::getBinarySegment | ( | ) | const |
Definition at line 193 of file FramePacket.h.
|
staticprotectedinherited |
| agxJson::Value & agxNet::StructuredMessage::getHeader | ( | ) |
Definition at line 189 of file FramePacket.h.
| const agxJson::Value & agxNet::StructuredMessage::getHeader | ( | ) | const |
Definition at line 190 of file FramePacket.h.
| agx::UInt32 agxNet::StructuredMessage::getMessageId | ( | ) | const |
|
inherited |
| agx::UInt32 agxNet::StructuredMessage::getResponseId | ( | ) | const |
| const agx::String & agxNet::StructuredMessage::getUri | ( | ) | const |
Definition at line 188 of file FramePacket.h.
|
inherited |
Subclass test.
Referenced by agx::Object::getAutoScopedResource(), agxData::Buffer::getElement(), and agx::Object::getResource().
|
static |
| agxNet::StructuredMessage::PreHeader | ( | ) |
Explicitly increment the reference count by one, indicating that this object has another pointer which is referencing it.
This method should be used with care, always balanced with the same number of calls to unreference.
Referenced by agxData::Val< UInt >::Val().
| void agxNet::StructuredMessage::setBinarySegment | ( | agxData::BinaryData * | binarySegment | ) |
|
staticprotectedinherited |
Internal: Set a DeleteHandler to which deletion of all referenced counted objects will be delegated to.
| void agxNet::StructuredMessage::setHeader | ( | const agxJson::Value & | header | ) |
|
protected |
| void agxNet::StructuredMessage::setResponseId | ( | agx::UInt32 | id | ) |
| void agxNet::StructuredMessage::setUri | ( | const agx::String & | uri | ) |
Decrement the reference count by one, indicating that a pointer to this object is referencing it.
If the reference count goes to zero, it is assumed that this object is no longer referenced and is automatically deleted.
This method should be used with care, always balanced with the same number of calls to reference.
|
inherited |
Decrement the reference count by one, indicating that a pointer to this object is referencing it.
However, do not delete it, even if ref count goes to 0. Warning, unref_nodelete() should only be called if the user knows exactly who will be responsible for, one should prefer unref() over unref_nodelete() as the later can lead to memory leaks.
|
staticinherited |
|
static |
Definition at line 60 of file FramePacket.h.
| agx::UInt32 agxNet::StructuredMessage::binarySegmentOffset |
Definition at line 114 of file FramePacket.h.
| agx::UInt32 agxNet::StructuredMessage::binarySegmentSize |
Definition at line 115 of file FramePacket.h.
| agx::UInt32 agxNet::StructuredMessage::headerSize |
Definition at line 113 of file FramePacket.h.
| agx::UInt32 agxNet::StructuredMessage::id |
Definition at line 110 of file FramePacket.h.
|
mutableprotectedinherited |
Definition at line 240 of file Referenced.h.
|
mutableprotectedinherited |
Definition at line 239 of file Referenced.h.
|
mutableprotectedinherited |
Definition at line 241 of file Referenced.h.
| agx::UInt32 agxNet::StructuredMessage::responseId |
Definition at line 111 of file FramePacket.h.
|
static |
Definition at line 117 of file FramePacket.h.
| agx::UInt32 agxNet::StructuredMessage::uriSize |
Definition at line 112 of file FramePacket.h.