2 #include "../../../tests/catch2/catch.hpp"
4 #include <mx/sys/timeUtils.hpp>
6 #include "../MagAOXApp.hpp"
45 SCENARIO(
"MagAOXApp INDI NewProperty",
"[MagAOXApp]" )
47 GIVEN(
"a new property request")
49 WHEN(
"a wrong device name")
57 pcf::IndiProperty prop;
60 pcf::IndiProperty nprop;
63 nprop.setDevice(
"test");
64 nprop.setName(
"nprop");
73 nprop.setDevice(
"wrong");
The base-class for MagAO-X applications.
std::string m_configName
The name of the configuration file (minus .conf).
int registerIndiPropertyNew(pcf::IndiProperty &prop, int(*)(void *, const pcf::IndiProperty &))
Register an INDI property which is exposed for others to request a New Property for.
indiDriver< MagAOXApp > * m_indiDriver
The INDI driver wrapper. Constructed and initialized by execute, which starts and stops communication...
void handleNewProperty(const pcf::IndiProperty &ipRecv)
Handler for the new INDI property request.
MagAOXApp()=delete
Default c'tor is deleted.
std::string configName()
Get the config name.
int callback(void *app, const pcf::IndiProperty &ipRecv)
SCENARIO("MagAOXApp INDI NewProperty", "[MagAOXApp]")
const pcf::IndiProperty & ipRecv
virtual int appStartup()
Any tasks to perform prior to the main event loop go here.
virtual int appLogic()
This is where derived applications implement their main FSM logic.
void configName(const std::string &cn)
virtual int appShutdown()
Any tasks to perform after main loop exit go here.