5 #ifndef OPENPSTD_MOCKKERNEL_H 6 #define OPENPSTD_MOCKKERNEL_H 8 #include "KernelInterface.h" 20 std::shared_ptr<PSTDConfiguration> _conf;
22 PSTD_FRAME_PTR CreateRandomFrame(
int x,
int y);
24 PSTD_FRAME_PTR CreateHorizontalLines(
int x,
int y);
26 PSTD_FRAME_PTR CreateVerticalLines(
int x,
int y);
28 PSTD_FRAME_PTR CreateHorizontalGradient(
int x,
int y);
30 PSTD_FRAME_PTR CreateVerticalGradient(
int x,
int y);
32 PSTD_FRAME_PTR CreateVerticalGradientNeg(
int x,
int y);
39 virtual void initialize_kernel(std::shared_ptr<PSTDConfiguration> config)
override;
57 #endif //OPENPSTD_MOCKKERNEL_H This is the general namespace of the OpenPSTD application.
Definition: Boundary.cpp:33
The kernel API.
Definition: KernelInterface.h:265
virtual void run(KernelCallback *callback) override
Runs the kernel.
Definition: MockKernel.cpp:17
Fake kernel useful for testing the interaction between kernel and CLI or GUI.
Definition: MockKernel.h:17
virtual void initialize_kernel(std::shared_ptr< PSTDConfiguration > config) override
Sets the configuration.
Definition: MockKernel.cpp:12
virtual SimulationMetadata get_metadata() override
Query the kernel for metadata about the simulation that is configured.
Definition: MockKernel.cpp:61
Callback interface for communication with the CLI or the GUI.
Definition: KernelInterface.h:212