Ocean
IOSDevice.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_IOS_IOS_DEVICE_H
9 #define META_OCEAN_DEVICES_IOS_IOS_DEVICE_H
10 
11 #include "ocean/devices/ios/IOS.h"
12 
13 #include "ocean/devices/Device.h"
14 
15 namespace Ocean
16 {
17 
18 namespace Devices
19 {
20 
21 namespace IOS
22 {
23 
24 /**
25  * This class implements a device for the IOS library.
26  * @ingroup deviceios
27  */
28 class OCEAN_DEVICES_IOS_EXPORT IOSDevice : virtual public Device
29 {
30  public:
31 
32  /**
33  * Returns the name of the owner library.
34  * @see Device::library().
35  */
36  virtual const std::string& library() const;
37 
38  protected:
39 
40  /**
41  * Creates a new device by is name.
42  * @param name The name of the device
43  * @param type Major and minor device type of the device
44  */
45  IOSDevice(const std::string& name, const DeviceType type);
46 
47  protected:
48 
49  /// True, if this sensor is started.
51 
52  /// The iOS event timestamp of the first sensor event (seconds since the last system boot).
54 
55  /// The Unix event timestamp of the first sensor event.
57 };
58 
59 }
60 
61 }
62 
63 }
64 
65 #endif // META_OCEAN_DEVICES_IOS_IOS_DEVICE_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 devices of any type.
Definition: devices/Device.h:28
This class implements a device for the IOS library.
Definition: IOSDevice.h:29
bool sensorIsStarted
True, if this sensor is started.
Definition: IOSDevice.h:50
Timestamp sensorFirstUnixEventTimestamp
The Unix event timestamp of the first sensor event.
Definition: IOSDevice.h:56
double sensorFirstIOSEventTimestamp
The iOS event timestamp of the first sensor event (seconds since the last system boot).
Definition: IOSDevice.h:53
IOSDevice(const std::string &name, const DeviceType type)
Creates a new device by is name.
virtual const std::string & library() const
Returns the name of the owner library.
This class implements a timestamp.
Definition: Timestamp.h:36
The namespace covering the entire Ocean framework.
Definition: Accessor.h:15