replace c include
This commit is contained in:
parent
f0c8fd2688
commit
4921527022
@ -6,7 +6,7 @@
|
|||||||
#include <cstddef>
|
#include <cstddef>
|
||||||
#include <cstdint>
|
#include <cstdint>
|
||||||
|
|
||||||
#include "../returnvalues/HasReturnvaluesIF.h"
|
#include "fsfw/returnvalues/HasReturnvaluesIF.h"
|
||||||
#include "Clock.h"
|
#include "Clock.h"
|
||||||
#include "clockDefinitions.h"
|
#include "clockDefinitions.h"
|
||||||
|
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
#ifdef WIN32
|
#ifdef WIN32
|
||||||
#include <winsock2.h>
|
#include <winsock2.h>
|
||||||
#else
|
#else
|
||||||
#include <sys/time.h>
|
#include <ctime>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
class Clock {
|
class Clock {
|
||||||
@ -33,7 +33,7 @@ class Clock {
|
|||||||
*
|
*
|
||||||
* @deprecated, we should not worry about ticks, but only time
|
* @deprecated, we should not worry about ticks, but only time
|
||||||
*/
|
*/
|
||||||
static uint32_t getTicksPerSecond(void);
|
static uint32_t getTicksPerSecond();
|
||||||
/**
|
/**
|
||||||
* This system call sets the system time.
|
* This system call sets the system time.
|
||||||
* To set the time, it uses a TimeOfDay_t struct.
|
* To set the time, it uses a TimeOfDay_t struct.
|
||||||
@ -148,7 +148,7 @@ class Clock {
|
|||||||
* @return
|
* @return
|
||||||
* - @c RETURN_OK on success.
|
* - @c RETURN_OK on success.
|
||||||
*/
|
*/
|
||||||
static ReturnValue_t setLeapSeconds(const uint16_t leapSeconds_);
|
static ReturnValue_t setLeapSeconds(uint16_t leapSeconds_);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the Leap Seconds since 1972
|
* Get the Leap Seconds since 1972
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#ifndef FSFW_TIMEMANAGER_RECEIVESTIMEINFOIF_H_
|
#ifndef FSFW_TIMEMANAGER_RECEIVESTIMEINFOIF_H_
|
||||||
#define FSFW_TIMEMANAGER_RECEIVESTIMEINFOIF_H_
|
#define FSFW_TIMEMANAGER_RECEIVESTIMEINFOIF_H_
|
||||||
|
|
||||||
#include "../ipc/MessageQueueSenderIF.h"
|
#include "fsfw/ipc/MessageQueueSenderIF.h"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This is a Interface for classes that receive timing information
|
* This is a Interface for classes that receive timing information
|
||||||
@ -13,11 +13,11 @@ class ReceivesTimeInfoIF {
|
|||||||
* Returns the id of the queue which receives the timing information.
|
* Returns the id of the queue which receives the timing information.
|
||||||
* @return Queue id of the timing queue.
|
* @return Queue id of the timing queue.
|
||||||
*/
|
*/
|
||||||
virtual MessageQueueId_t getTimeReceptionQueue() const = 0;
|
[[nodiscard]] virtual MessageQueueId_t getTimeReceptionQueue() const = 0;
|
||||||
/**
|
/**
|
||||||
* Empty virtual destructor.
|
* Empty virtual destructor.
|
||||||
*/
|
*/
|
||||||
virtual ~ReceivesTimeInfoIF() {}
|
virtual ~ReceivesTimeInfoIF() = default;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif /* FSFW_TIMEMANAGER_RECEIVESTIMEINFOIF_H_ */
|
#endif /* FSFW_TIMEMANAGER_RECEIVESTIMEINFOIF_H_ */
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
#include <cstring>
|
#include <cstring>
|
||||||
|
|
||||||
#include "../ipc/MessageQueueMessage.h"
|
#include "fsfw/ipc/MessageQueueMessage.h"
|
||||||
#include "Clock.h"
|
#include "Clock.h"
|
||||||
|
|
||||||
class TimeMessage : public MessageQueueMessage {
|
class TimeMessage : public MessageQueueMessage {
|
||||||
|
Loading…
Reference in New Issue
Block a user