Class used by a Publisher to handle its own publisher status.
More...
#include <pubBase.hpp>
Class used by a Publisher to handle its own publisher status.
◆ PublisherStatus() [1/3]
ifw::ccf::common::PublisherStatus::PublisherStatus |
( |
const std::string & | pub_id, |
|
|
const std::string | obj_id = "ifw::ccf::common::PublisherStatus" ) |
Instantiates a PublisherStatus class with the given Publisher ID. The object id shall be allocated to a unique ID for the instances used in the Publisher Threads for optimal performance.
◆ PublisherStatus() [2/3]
ifw::ccf::common::PublisherStatus::PublisherStatus |
( |
const PublisherStatus & | source | ) |
|
◆ PublisherStatus() [3/3]
ifw::ccf::common::PublisherStatus::PublisherStatus |
( |
| ) |
|
◆ ~PublisherStatus()
ifw::ccf::common::PublisherStatus::~PublisherStatus |
( |
| ) |
|
|
virtual |
◆ AddFileStored()
void ifw::ccf::common::PublisherStatus::AddFileStored |
( |
const std::string & | new_file | ) |
|
Update the internal set of output files generated by the Data Publisher. Note: This will have to be updated by the specific publisher implementation as only this knows about which exact output files have been generated.
◆ GetFilesStored()
void ifw::ccf::common::PublisherStatus::GetFilesStored |
( |
std::vector< std::string > & | files_stored | ) |
const |
Get the names of the output files stored.
◆ GetFramesHandled()
int64_t ifw::ccf::common::PublisherStatus::GetFramesHandled |
( |
| ) |
const |
Return the number of frames handled.
◆ GetNbOfFilesStored()
uint64_t ifw::ccf::common::PublisherStatus::GetNbOfFilesStored |
( |
| ) |
const |
Get the number of files stored (for a Recording Publisher).
◆ GetPubId()
const std::string & ifw::ccf::common::PublisherStatus::GetPubId |
( |
| ) |
const |
Return the ID of the Publisher Status object.
◆ GetStartTime()
double ifw::ccf::common::PublisherStatus::GetStartTime |
( |
| ) |
const |
Get the start time for the previous publishing started (seconds since epoch).
◆ GetStatus()
Return the status of the associated Data Publisher.
◆ GetVolumeHandled()
int64_t ifw::ccf::common::PublisherStatus::GetVolumeHandled |
( |
| ) |
const |
Return the volume handled.
◆ IncrFramesHandled()
void ifw::ccf::common::PublisherStatus::IncrFramesHandled |
( |
| ) |
|
Increment the number of frame handled by one.
◆ IncrVolumeHandled()
void ifw::ccf::common::PublisherStatus::IncrVolumeHandled |
( |
const uint32_t | vol | ) |
|
Increase the volume handled by the Data Publisher with the given number.
◆ operator=()
◆ Reset()
void ifw::ccf::common::PublisherStatus::Reset |
( |
| ) |
|
Reset the members in the publisher status.
◆ SetFilesStored()
void ifw::ccf::common::PublisherStatus::SetFilesStored |
( |
const std::vector< std::string > & | files_stored | ) |
|
Set the names of the files stored.
◆ SetFramesHandled()
void ifw::ccf::common::PublisherStatus::SetFramesHandled |
( |
const int64_t | nb_of_frames_handled | ) |
|
Set the number of frames handled.
◆ SetStatus()
void ifw::ccf::common::PublisherStatus::SetStatus |
( |
const PubStatus | status | ) |
|
Set the status of the Publisher Status object.
◆ SetVolumeHandled()
void ifw::ccf::common::PublisherStatus::SetVolumeHandled |
( |
const int64_t | volume_handled | ) |
|
Set the volume (in bytes) handled.
◆ ToString()
std::string ifw::ccf::common::PublisherStatus::ToString |
( |
| ) |
const |
Generate a summarising, one line status of the object instance.
The documentation for this class was generated from the following files: