AGX Dynamics  2.38.0.2
RigidBodyAttachmentSentry.h
Go to the documentation of this file.
1 /*
2 Copyright 2007-2024. Algoryx Simulation AB.
3 
4 All AGX source code, intellectual property, documentation, sample code,
5 tutorials, scene files and technical white papers, are copyrighted, proprietary
6 and confidential material of Algoryx Simulation AB. You may not download, read,
7 store, distribute, publish, copy or otherwise disseminate, use or expose this
8 material unless having a written signed agreement with Algoryx Simulation AB, or having been
9 advised so by Algoryx Simulation AB for a time limited evaluation, or having purchased a
10 valid commercial license from Algoryx Simulation AB.
11 
12 Algoryx Simulation AB disclaims all responsibilities for loss or damage caused
13 from using this software, unless otherwise stated in written agreements with
14 Algoryx Simulation AB.
15 */
16 
17 
18 #ifndef AGXPOWERLINE_DETAIL_RIGID_BODY_ATTACHMENT_H
19 #define AGXPOWERLINE_DETAIL_RIGID_BODY_ATTACHMENT_H
20 
21 #include <agxStream/Serializable.h>
22 
23 namespace agxPowerLine
24 {
25  namespace detail
26  {
33  {
34  public:
35  virtual void store(agxStream::OutputArchive& out) const override;
36  virtual void restore(agxStream::InputArchive& in) override;
37 
38  virtual agxStream::StorageAgent* getStorageAgent() const override;
39  static const char* getConstructClassId();
40  friend class agxStream::DefStorageAgent<agxPowerLine::detail::RigidBodyTranslationalAttachmentSentry>;
41  virtual const char* getClassName() const override;
43  static agxStream::Serializable* create(agxStream::InputArchive&);
44 
45  private:
48  };
49 
50 
57  {
58  public:
59  virtual void store(agxStream::OutputArchive& out) const override;
60  virtual void restore(agxStream::InputArchive& in) override;
61 
62  virtual agxStream::StorageAgent* getStorageAgent() const override;
63  static const char* getConstructClassId();
64  friend class agxStream::DefStorageAgent<agxPowerLine::detail::RigidBodyRotationalAttachmentSentry>;
65  virtual const char* getClassName() const override;
67  static agxStream::Serializable* create(agxStream::InputArchive&);
68 
69  private:
72  };
73  }
74 }
75 
76 #endif
agxPowerLine::detail::RigidBodyRotationalAttachmentSentry
RigidBodyTranslationalAttachment has been deprecated and removed.
Definition: RigidBodyAttachmentSentry.h:56
agxPowerLine::detail::RigidBodyTranslationalAttachmentSentry::store
virtual void store(agxStream::OutputArchive &out) const override
agxStream::out
OutputRef< Serializable > out(const char *name, const Serializable *obj)
Return an object that contain the name and the object that should be serialized to an archive.
Definition: OutputArchive.h:412
agxStream::Serializable
This class is an abstract base class for all classes that can be stored and retrieved from an Archive...
Definition: Serializable.h:44
agxPowerLine::detail::RigidBodyTranslationalAttachmentSentry::getClassName
virtual const char * getClassName() const override
agxStream::in
InputRef< T > in(const char *name, T &obj)
Create an object with a name and a reference to the object that should be restored (usually a pointer...
Definition: InputArchive.h:399
agxPowerLine::detail::RigidBodyTranslationalAttachmentSentry
RigidBodyTranslationalAttachment has been deprecated and removed.
Definition: RigidBodyAttachmentSentry.h:32
agxStream::OutputArchive
Class for writing serialized data in binary format to a stream.
Definition: OutputArchive.h:56
Serializable.h
agxStream::InputArchive
Class for reading a binary stream of serialized data.
Definition: InputArchive.h:50
agxPowerLine
agxPowerLine contains a collection of connected components that transport power across a system.
Definition: MotorUnit.h:23
agxPowerLine::detail::RigidBodyTranslationalAttachmentSentry::create
static agxStream::Serializable * create()
agxPowerLine::detail::RigidBodyTranslationalAttachmentSentry::getStorageAgent
virtual agxStream::StorageAgent * getStorageAgent() const override
agxPowerLine::detail::RigidBodyTranslationalAttachmentSentry::getConstructClassId
static const char * getConstructClassId()
agxPowerLine::detail::RigidBodyTranslationalAttachmentSentry::restore
virtual void restore(agxStream::InputArchive &in) override