Skip to content

Commit

Permalink
Change std::initializer_list to std::vector and inherit from Interfac…
Browse files Browse the repository at this point in the history
…e_get_set_n_frames
  • Loading branch information
rtajan committed May 22, 2024
1 parent 3b49e23 commit 1ab4b49
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 4 additions & 2 deletions include/Tools/Reporter/Probe/Reporter_probe.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@ class AProbe;
namespace tools
{

class Reporter_probe : public Reporter
class Reporter_probe
: public Reporter
, public Interface_get_set_n_frames
{
friend module::AProbe;

Expand Down Expand Up @@ -73,7 +75,7 @@ class Reporter_probe : public Reporter
void set_cols_prec(const size_t precision);
void set_cols_size(const size_t col_size);

void register_probes(const std::initializer_list<module::AProbe*>& probes);
void register_probes(const std::vector<module::AProbe*>& probes);

protected:
void register_probe(module::AProbe& probe,
Expand Down
3 changes: 2 additions & 1 deletion src/Tools/Reporter/Probe/Reporter_probe.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ using namespace spu::tools;

Reporter_probe::Reporter_probe(const std::string& group_name, const std::string& group_description)
: Reporter()
, Interface_get_set_n_frames()
, n_frames(1)
, mtx(100)
{
Expand Down Expand Up @@ -393,7 +394,7 @@ Reporter_probe::set_cols_size(const size_t col_size)
}

void
Reporter_probe::register_probes(const std::initializer_list<module::AProbe*>& probes)
Reporter_probe::register_probes(const std::vector<module::AProbe*>& probes)
{
for (auto p : probes)
{
Expand Down

0 comments on commit 1ab4b49

Please sign in to comment.