Banuba SDK
Public Member Functions | Static Public Member Functions | List of all members
bnb::interfaces::push_frame_mocker Class Referenceabstract

This class will mock data from default source to data from file. More...

#include <push_frame_mocker.hpp>

Public Member Functions

virtual void process (const std::string &output_file)=0
 Parse file and start pushing frame to Effect player. More...
 

Static Public Member Functions

static std::shared_ptr< push_frame_mockercreate (const std::shared_ptr< effect_player > &player, const std::shared_ptr<::bnb::interfaces::frames_provider > &provider)
 

Detailed Description

This class will mock data from default source to data from file.

Used for testing and debug.

Definition at line 20 of file push_frame_mocker.hpp.

Member Function Documentation

◆ create()

static std::shared_ptr<push_frame_mocker> bnb::interfaces::push_frame_mocker::create ( const std::shared_ptr< effect_player > &  player,
const std::shared_ptr<::bnb::interfaces::frames_provider > &  provider 
)
static
Parameters
playereffect player to which attach this provider.
providerprovider to fetch frames from

◆ process()

virtual void bnb::interfaces::push_frame_mocker::process ( const std::string &  output_file)
pure virtual

Parse file and start pushing frame to Effect player.

Parameters
outputFilepath to file to write processed data in internal format.

The documentation for this class was generated from the following file: