AGXDynamics  2.35.0.3
PressureConnector.h
Go to the documentation of this file.
1 /*
2 Copyright 2007-2022. 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 
19 #ifndef AGXHYDRAULICS_PRESSURE_CONNECTOR_H
20 #define AGXHYDRAULICS_PRESSURE_CONNECTOR_H
21 
22 #include <agx/Real.h>
23 #include <agxPowerLine/Connector.h>
24 #include <agxHydraulics/export.h>
25 
26 
27 namespace agxHydraulics
28 {
31 
37  {
38  public:
42  virtual agx::Real getPressure() const = 0;
43 
44 
45  // Methods called by the rest of the PowerLine/Hydraulics frame work.
46  public:
47 #ifndef SWIG
48 
51  virtual bool store(agxStream::StorageStream& str) const;
52 
54 
58  virtual bool restore(agxStream::StorageStream& str);
59 
61 #endif
62  protected:
64  virtual ~PressureConnector();
65 
66  };
67 }
68 
69 
70 #endif
agx::Real
double Real
Definition: Real.h:42
agxPowerLine::Connector::store
virtual bool store(agxStream::StorageStream &str) const override
Stores internal data for this segment into stream.
agxStream::StorageStream
Abstract base class for storing/restoring a line/drums with version control.
Definition: StorageStream.h:48
AGXHYDRAULICS_EXPORT
#define AGXHYDRAULICS_EXPORT
Definition: agxHydraulics/export.h:39
AGX_DECLARE_VECTOR_TYPES
#define AGX_DECLARE_VECTOR_TYPES(type)
Definition: Vector.h:34
agxPowerLine::Connector::restore
virtual bool restore(agxStream::StorageStream &str) override
Restores internal data from stream.
agxHydraulics::PressureConnector
The PressureConnector is an abstract base class for all Connectors that has a pressure.
Definition: PressureConnector.h:36
Connector.h
AGX_DECLARE_POINTER_TYPES
#define AGX_DECLARE_POINTER_TYPES(type)
Definition: Referenced.h:248
agxPowerLine::Connector
Links two connections together.
Definition: Connector.h:53
agxHydraulics
The agxHydraulics namespace contains classes for modeling hydraulic circuits within the power line fr...
Definition: Accumulator.h:27
Real.h
export.h