File DataReceiver.hpp
File List > DataCollection > DataReceiver.hpp
Go to the documentation of this file
#pragma once
#include <vector>
namespace DataCollection {
template <typename T>
class DataReceiver {
public:
DataReceiver() = default;
virtual ~DataReceiver() = default;
std::vector<T>& getStorage() {
return storage;
}
void StoreIntoStorage(T obj){
storage.push_back(obj);
}
bool IsEmpty() {
return storage.empty();
}
protected:
std::vector<T> storage;
};
} // namespace DataCollection