openPSTD  2.0
Open source simulation for sound propagation in urban environments
output.h
1 //
2 // Created by michiel on 24-1-2016.
3 //
4 
5 #ifndef OPENPSTD_OUTPUT_CLI_H
6 #define OPENPSTD_OUTPUT_CLI_H
7 
8 #include <shared/PSTDFile.h>
9 namespace OpenPSTD
10 {
11  namespace CLI
12  {
14  {
15  private:
16  std::shared_ptr<Shared::PSTDFile> _file;
17  public:
18  CLIOutput(std::shared_ptr<Shared::PSTDFile> file) : _file(file)
19  { };
20 
21  virtual void Callback(Kernel::CALLBACKSTATUS status, std::string message, int frame) override;
22 
23  virtual void WriteFrame(int frame, int domain, Kernel::PSTD_FRAME_PTR data) override;
24 
25  virtual void WriteSample(int startSample, int receiver, std::vector<float> data) override;
26  };
27  }
28 }
29 #endif //OPENPSTD_OUTPUT_CLI_H
This is the general namespace of the OpenPSTD application.
Definition: Boundary.cpp:33
virtual void WriteFrame(int frame, int domain, Kernel::PSTD_FRAME_PTR data) override
Return pressure data of scene to callback handler.
Definition: output.cpp:30
virtual void WriteSample(int startSample, int receiver, std::vector< float > data) override
Return receiver data of scene to callback handler.
Definition: output.cpp:35
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.
Definition: output.cpp:14
Definition: output.h:13
Callback interface for communication with the CLI or the GUI.
Definition: KernelInterface.h:212
CALLBACKSTATUS
The status of the kernel when the callback is called.
Definition: KernelInterface.h:20