TReK C++
5.3.3
Telemetry/Command API
|
This class holds one or more track items for command uplink history. More...
#include <command_track.h>
Public Member Functions | |
Constructors, Destructor, and Other Basic Methods | |
CommandTrack () | |
Default constructor of the class. | |
virtual | ~CommandTrack () |
Class destructor. More... | |
int32_t | Update (TrackItem *item_ptr) |
Updates the specficied track item. More... | |
int32_t | Update (TrackItem &item) |
Updates the specficied track item. More... | |
int32_t | Update (CommandTrack *track_ptr) |
Updates the track with each track item in the input. More... | |
int32_t | Update (CommandTrack &input) |
Updates the track with each track item in the input. More... | |
int32_t | Find (uint32_t token, TrackItem **track_item_ptr) |
Gets the track item for the specified token. More... | |
void | GetAllTrackItems (TrackItemArray &all_items) |
Gets all of the track item. More... | |
void | operator= (CommandTrack &right_side) |
Provides the equal operator. | |
void | RemoveAllItemsFromMap () |
Removes all items from the internal track map. | |
This class holds one or more track items for command uplink history.
|
virtual |
Class destructor.
Removes all resources created with this instance of the class.
int32_t trek::CommandTrack::Find | ( | uint32_t | token, |
TrackItem ** | track_item_ptr | ||
) |
Gets the track item for the specified token.
The returned track item should not be deleted.
[in] | token | The item to find in the track |
[out] | track_item_ptr | Upon SUCCESS, the track item associated with the token |
Example:
void trek::CommandTrack::GetAllTrackItems | ( | TrackItemArray & | all_items | ) |
Gets all of the track item.
The returned track items should not be deleted.
[out] | all_items | Array of returned track items |
Example:
int32_t trek::CommandTrack::Update | ( | CommandTrack & | input | ) |
Updates the track with each track item in the input.
[in] | input | The items to update |
Example:
int32_t trek::CommandTrack::Update | ( | CommandTrack * | track_ptr | ) |
Updates the track with each track item in the input.
[in] | track_ptr | The items to update |
Example:
int32_t trek::CommandTrack::Update | ( | TrackItem & | item | ) |
Updates the specficied track item.
If the track item already exists, this method will update its contents with the contents of item_ptr. If the track item does not exist, it is added to the map.
[in] | item | The new item contents |
Example:
int32_t trek::CommandTrack::Update | ( | TrackItem * | item_ptr | ) |
Updates the specficied track item.
If the track item already exists, this method will update its contents with the contents of item_ptr. If the track item does not exist, it is added to the map.
[in] | item_ptr | The new item contents |
Example: