Ocean
Loading...
Searching...
No Matches
SerializationGravityTracker3DOF.h
Go to the documentation of this file.
1/*
2 * Copyright (c) Meta Platforms, Inc. and affiliates.
3 *
4 * This source code is licensed under the MIT license found in the
5 * LICENSE file in the root directory of this source tree.
6 */
7
8#ifndef META_OCEAN_DEVICES_SERIALIZATION_SERIALIZATION_GRAVITY_TRACKER_3DOF_H
9#define META_OCEAN_DEVICES_SERIALIZATION_SERIALIZATION_GRAVITY_TRACKER_3DOF_H
10
13
15
16namespace Ocean
17{
18
19namespace Devices
20{
21
22namespace Serialization
23{
24
25// Forward declaration.
26class SerializationGravityTracker3DOF;
27
28/**
29 * Definition of a smart object reference for a Serialization 3DOF gravity tracker.
30 * @see SerializationGravityTracker3DOF.
31 * @ingroup devicesserialization
32 */
34
35/**
36 * This class implements a Serialization 3DOF gravity tracker.
37 * @ingroup devicesserialization
38 */
39class OCEAN_DEVICES_SERIALIZATION_EXPORT SerializationGravityTracker3DOF :
40 virtual public GravityTracker3DOF,
41 virtual public SerializationTracker
42{
45
46 public:
47
48 /**
49 * Forwards sample events.
50 * @param gravities The gravity measurements to forward
51 * @param referenceSystem The reference system of the sample
52 * @param timestamp The timestamp of the event
53 * @param metadata Optional metadata of the sample
54 */
55 void forwardSampleEvent(GravityTracker3DOFSample::Gravities&& gravities, const ReferenceSystem referenceSystem, const Timestamp& timestamp, Metadata&& metadata);
56
57 /**
58 * Returns the type of this tracker.
59 * @return Tracker type
60 */
61 static inline DeviceType deviceTypeSerializationGravityTracker3DOF();
62
63 protected:
64
65 /**
66 * Creates a new Serialization 3DOF gravity tracker object.
67 * @param name The name of the tracker
68 */
69 explicit SerializationGravityTracker3DOF(const std::string& name);
70
71 /**
72 * Destructs a Serialization 3DOF gravity tracker object.
73 */
75};
76
81
82}
83
84}
85
86}
87
88#endif // META_OCEAN_DEVICES_SERIALIZATION_SERIALIZATION_GRAVITY_TRACKER_3DOF_H
Definition of a class holding the major and minor device type.
Definition devices/Device.h:62
This class is the base class for all 3DOF gravity trackers.
Definition GravityTracker3DOF.h:41
static DeviceType deviceTypeGravityTracker3DOF()
Returns the device type of this tracker.
Definition GravityTracker3DOF.h:124
std::unordered_map< std::string, Value > Metadata
Definition of an unordered map mapping keys to values.
Definition Measurement.h:62
This class implements a device factory for the Serialization library.
Definition SerializationFactory.h:29
This class implements a Serialization 3DOF gravity tracker.
Definition SerializationGravityTracker3DOF.h:42
static DeviceType deviceTypeSerializationGravityTracker3DOF()
Returns the type of this tracker.
Definition SerializationGravityTracker3DOF.h:77
void forwardSampleEvent(GravityTracker3DOFSample::Gravities &&gravities, const ReferenceSystem referenceSystem, const Timestamp &timestamp, Metadata &&metadata)
Forwards sample events.
~SerializationGravityTracker3DOF() override
Destructs a Serialization 3DOF gravity tracker object.
SerializationGravityTracker3DOF(const std::string &name)
Creates a new Serialization 3DOF gravity tracker object.
This class implements a Serialization tracker.
Definition SerializationTracker.h:39
This class implements a player for device objects based on Ocean's DataSerializer.
Definition SerializerDevicePlayer.h:45
This class implements a smart device reference.
Definition DeviceRef.h:36
ReferenceSystem
Definition of different tracking reference system.
Definition devices/Tracker.h:74
This class implements a timestamp.
Definition Timestamp.h:63
The namespace covering the entire Ocean framework.
Definition Accessor.h:15