AGXDynamics  2.31.1.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
agxPowerLine::detail::RigidBodyRotationalAttachmentSentry Class Reference

RigidBodyTranslationalAttachment has been deprecated and removed. More...

#include <RigidBodyAttachmentSentry.h>

+ Inheritance diagram for agxPowerLine::detail::RigidBodyRotationalAttachmentSentry:

Public Member Functions

virtual const char * getClassName () const override
 
bool getEnableSerialization () const
 
bool getEnableUuidGeneration ()
 
agx::UInt32 getIndex () const
 This index is given at creation of this object. More...
 
virtual agxStream::StorageAgent * getStorageAgent () const override
 
agx::Uuid getUuid () const
 
bool isFinished () const
 
virtual void restore (agxStream::InputArchive &in) override
 
void setEnableSerialization (bool flag)
 Set to false to disable serialization of this object. More...
 
void setFinished ()
 Tells this class that it is restored correctly and should not be deleted during destruction of an Archive. More...
 
void setUuid (const agx::Uuid &uuid)
 Explicitly set a Uuid on a serializable object. More...
 
virtual void store (agxStream::OutputArchive &out) const override
 

Static Public Member Functions

static agxStream::Serializable * create ()
 
static agxStream::Serializable * create (agxStream::InputArchive &)
 
static const char * getConstructClassId ()
 
static void setEnableUuidGeneration (bool flag)
 Specify if there should be UUID:s generated for each new Serializable object. By default it is enabled. More...
 

Protected Member Functions

void generateUuid ()
 

Detailed Description

RigidBodyTranslationalAttachment has been deprecated and removed.

This sentry class detects the presence of such objects in old archive serializations and uses LOGGER_ERROR to abort the restore process.

Definition at line 56 of file RigidBodyAttachmentSentry.h.

Member Function Documentation

static agxStream::Serializable* agxPowerLine::detail::RigidBodyRotationalAttachmentSentry::create ( )
static
static agxStream::Serializable* agxPowerLine::detail::RigidBodyRotationalAttachmentSentry::create ( agxStream::InputArchive &  )
static
void agxStream::Serializable::generateUuid ( )
protectedinherited
virtual const char* agxPowerLine::detail::RigidBodyRotationalAttachmentSentry::getClassName ( ) const
overridevirtual
Returns
the class name of this class.

Reimplemented from agxStream::Serializable.

static const char* agxPowerLine::detail::RigidBodyRotationalAttachmentSentry::getConstructClassId ( )
static
bool agxStream::Serializable::getEnableSerialization ( ) const
inherited
Returns
true if serialization is enabled for this object

Definition at line 273 of file Serializable.h.

bool agxStream::Serializable::getEnableUuidGeneration ( )
inherited
Returns
true if Uuid:s should be generated for each new Serializable object
agx::UInt32 agxStream::Serializable::getIndex ( ) const
inherited

This index is given at creation of this object.

It is guaranteed to be unique for the lifetime of this library instance. As long as the application is running. This value is not serialized or restored. A new object will always get a new index no matter how it is created.

Returns
an instance index of this object. This is unique for the lifetime of this library instance.

Definition at line 247 of file Serializable.h.

virtual agxStream::StorageAgent* agxPowerLine::detail::RigidBodyRotationalAttachmentSentry::getStorageAgent ( ) const
overridevirtual
Returns
the storage agent

Implements agxStream::Serializable.

agx::Uuid agxStream::Serializable::getUuid ( ) const
inherited
Returns
a unique id for this instance.

Definition at line 268 of file Serializable.h.

bool agxStream::Serializable::isFinished ( ) const
inherited
Returns
true if this class is restored correctly and should not be deleted during destruction of an Archive.

Definition at line 252 of file Serializable.h.

virtual void agxPowerLine::detail::RigidBodyRotationalAttachmentSentry::restore ( agxStream::InputArchive &  in)
overridevirtual
void agxStream::Serializable::setEnableSerialization ( bool  flag)
inherited

Set to false to disable serialization of this object.

It will just be ignored during serialization (writing). It is still possible to restore TO this object.

static void agxStream::Serializable::setEnableUuidGeneration ( bool  flag)
staticinherited

Specify if there should be UUID:s generated for each new Serializable object. By default it is enabled.

void agxStream::Serializable::setFinished ( )
inherited

Tells this class that it is restored correctly and should not be deleted during destruction of an Archive.

void agxStream::Serializable::setUuid ( const agx::Uuid &  uuid)
inherited

Explicitly set a Uuid on a serializable object.

Use this method with great care, as it can result in non-unique identifiers in the system!

virtual void agxPowerLine::detail::RigidBodyRotationalAttachmentSentry::store ( agxStream::OutputArchive &  out) const
overridevirtual

The documentation for this class was generated from the following file: