Go to the documentation of this file.
5 #ifndef CCF_COMMON_UTILITIES_HPP_H_
6 #define CCF_COMMON_UTILITIES_HPP_H_
10 #include <core/utils/param/parameterSet.hpp>
18 std::string
PackParameters(
const core::utils::param::ParameterSet& parameters);
22 core::utils::param::ParameterSet& par_set);
38 void Update(
const double fr_recv_timestamp,
39 const double fr_handling_time,
40 const uint32_t fr_size);
52 std::string
GetId()
const;
113 #endif // CCF_COMMON_UTILITIES_HPP_H_
double p_last_update
Definition: utilities.hpp:97
double GetStartTime() const
Get the start time for the recording.
Definition: utilities.cpp:147
const std::vector< double > & GetFrRecvTimestamps() const
Get a vector with the timestamps for receiving the frames.
Definition: utilities.cpp:167
std::string PackParameters(const core::utils::param::ParameterSet ¶meters)
Serialise the parameters contained in the parameter set.
Definition: utilities.cpp:40
uint64_t GetFrameCount() const
Get the number of frames handled.
Definition: utilities.cpp:157
uint64_t p_volume
Definition: utilities.hpp:99
double p_start_time
Definition: utilities.hpp:96
void SetLostFramesCounter(const uint64_t lost_frames)
Set the lost frames counter.
Definition: utilities.cpp:218
uint64_t GetVolume() const
Get the volume (in bytes) of the frames handled.
Definition: utilities.cpp:162
void SetNbOfSamples(const uint16_t nb)
Set the number of samples to keep in the sliding window.
Definition: utilities.cpp:95
uint64_t p_skipped_frames
Definition: utilities.hpp:101
std::vector< uint64_t > p_fr_recv_fr_counts
Definition: utilities.hpp:104
double GetLastUpdate() const
Get the time for the last update of the samples.
Definition: utilities.cpp:152
std::string ToString() const
Generate a string summery of the contents of the object.
Definition: utilities.cpp:242
uint64_t p_frame_count
Definition: utilities.hpp:98
void Update(const double fr_recv_timestamp, const double fr_handling_time, const uint32_t fr_size)
Definition: utilities.cpp:110
double p_first_recv_time
Definition: utilities.hpp:103
FrameStatistics()
Definition: utilities.cpp:68
std::string GetImageDir()
Get the name of the image output folder.
Definition: utilities.cpp:15
double GetTimeFirstFrame() const
Get the time stamp of the first frame status registered.
Definition: utilities.cpp:132
uint64_t GetSkippedFrames() const
Get the number of skipped frames.
Definition: utilities.cpp:232
const std::vector< uint64_t > & GetFrRecvFrCounts() const
Get the frame counts of each frame for which data is stored in the object.
Definition: utilities.cpp:172
FrameStatistics & operator=(const FrameStatistics &source)
Definition: utilities.cpp:200
~FrameStatistics()
Definition: utilities.cpp:73
std::string p_id
Definition: utilities.hpp:93
uint64_t IncSkippedFramesCounter()
Increment the frames handled counter.
Definition: utilities.cpp:225
uint64_t GetLostFrames() const
Get the number of lost frames.
Definition: utilities.cpp:237
std::vector< double > p_fr_recv_timestamps
Definition: utilities.hpp:102
Definition: appBase.cpp:8
void UnpackParameters(const std::string ¶meters, core::utils::param::ParameterSet &par_set)
Unpacke the serialised parameters and store the information in the provided parameter set object.
Definition: utilities.cpp:51
uint16_t GetNbOfSamples() const
Get the number of samples used in the sliding window.
Definition: utilities.cpp:142
std::string GetId() const
Get the ID of the object.
Definition: utilities.cpp:137
Class used by the threads to store info for generating performance statistics.
Definition: utilities.hpp:25
uint16_t p_nb_samples
Definition: utilities.hpp:94
uint64_t p_lost_frames
Definition: utilities.hpp:100
void Reset()
Reset the frame statistics object.
Definition: utilities.cpp:77
const std::vector< double > & GetFrHandlingTimes() const
Get vector with the timestamp for handling the frames.
Definition: utilities.cpp:177
std::vector< double > p_fr_handling_times
Definition: utilities.hpp:105
void GetDataSnapshot(FrameStatistics &trg_obj) const
Get a snapshot of the data in the object.
Definition: utilities.cpp:182