Class DataCollection::GameReceiver
ClassList > DataCollection > GameReceiver
Represents a receiver specifically designed to handle game-related data. More...
#include <GameReceiver.hpp>
Inherits the following classes: DataCollection::DataReceiver
Public Functions
| Type | Name |
|---|---|
| GameReceiver () = default Default constructor for the GameReceiver class. |
|
| void | store_GameData (const GameData & gameData) Store a GameData object into the receiver's storage. |
| ~GameReceiver () override Destructor for the GameReceiver class. |
Public Functions inherited from DataCollection::DataReceiver
See DataCollection::DataReceiver
| Type | Name |
|---|---|
| DataReceiver () = default Default constructor for DataReceiver class. |
|
| bool | IsEmpty () Checks if the storage is empty. |
| void | StoreIntoStorage (T obj) Store a data object into the storage. |
| std::vector< T > & | getStorage () Retrieves the stored data objects. |
| virtual | ~DataReceiver () = default Virtual destructor for DataReceiver class. |
Protected Attributes inherited from DataCollection::DataReceiver
See DataCollection::DataReceiver
| Type | Name |
|---|---|
| std::vector< T > | storage Vector to store shared_ptr data objects of type T. |
Detailed Description
GameReceiver is an extension of the generic DataReceiver, specialized to handle data related to games. It provides methods for storing and processing game-specific data types such as GameData.
Public Functions Documentation
function GameReceiver
DataCollection::GameReceiver::GameReceiver () = default
function store_GameData
Store a GameData object into the receiver's storage.
inline void DataCollection::GameReceiver::store_GameData (
const GameData & gameData
)
This method allows for the addition of game-specific data into the receiver's storage for further processing or analysis.
Parameters:
gameDataThe GameData object to be stored.
function ~GameReceiver
DataCollection::GameReceiver::~GameReceiver () override
The documentation for this class was generated from the following file source/DataCollection/GameReceiver.hpp