openPSTD  2.0
Open source simulation for sound propagation in urban environments
Public Member Functions | List of all members
OpenPSTD::CLI::CLIOutput Class Reference
Inheritance diagram for OpenPSTD::CLI::CLIOutput:
Inheritance graph
Collaboration diagram for OpenPSTD::CLI::CLIOutput:
Collaboration graph

Public Member Functions

 CLIOutput (std::shared_ptr< Shared::PSTDFile > file)
 
virtual void Callback (Kernel::CALLBACKSTATUS status, std::string message, int frame) override
 This callback will be called with information how far the kernel is progressed. More...
 
virtual void WriteFrame (int frame, int domain, Kernel::PSTD_FRAME_PTR data) override
 Return pressure data of scene to callback handler. More...
 
virtual void WriteSample (int startSample, int receiver, std::vector< float > data) override
 Return receiver data of scene to callback handler. More...
 

Member Function Documentation

void OpenPSTD::CLI::CLIOutput::Callback ( Kernel::CALLBACKSTATUS  status,
std::string  message,
int  frame 
)
overridevirtual

This callback will be called with information how far the kernel is progressed.

Parameters
statusCALLBACKSTATUS enum, either one of starting/running/finishing/error.
messageMessage to pass to callback handler
frameeither positive integer corresponding to time step of data or -1 when kernel is not running.

Implements OpenPSTD::Kernel::KernelCallback.

void OpenPSTD::CLI::CLIOutput::WriteFrame ( int  frame,
int  domain,
Kernel::PSTD_FRAME_PTR  data 
)
overridevirtual

Return pressure data of scene to callback handler.

Parameters
framePositive integer corresponding to time step of data.
domainan identifier that identifies the domain
data1D row-major vector of pressure data.

Implements OpenPSTD::Kernel::KernelCallback.

void OpenPSTD::CLI::CLIOutput::WriteSample ( int  startSample,
int  receiver,
std::vector< float >  data 
)
overridevirtual

Return receiver data of scene to callback handler.

Parameters
startSamplePositive integer corresponding to time step of the first data point.
receiveran identifier that identifies the receiver
dataa set of data points

Implements OpenPSTD::Kernel::KernelCallback.


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