15#include <milkzmqClient.hpp>
17#include "../../libMagAOX/libMagAOX.hpp"
18#include "../../magaox_git_version.h"
95 const std::string &file,
115 config.add(
"server.address",
123 "The server's remote address. Usually localhost if using a tunnel." );
124 config.add(
"server.imagePort",
132 "The server's port. Usually the port on localhost forwarded to the host." );
134 config.add(
"server.shmimNames",
142 "List of names of the remote shmim streams to get." );
149 config( m_address,
"server.address" );
154 std::cerr <<
"m_imagePort = " <<
m_imagePort <<
"\n";
196 m_timeToDie.store(
true, std::memory_order_relaxed );
The base-class for XWCTk applications.
std::string m_configName
The name of the configuration file (minus .conf).
static int log(const typename logT::messageT &msg, logPrioT level=logPrio::LOG_DEFAULT)
Make a log entry.
MagAO-X application to control reading ImageStreamIO streams from a zeroMQ channel.
virtual int appLogic()
Implementation of the FSM for the Siglent SDG.
virtual void reportNotice(const std::string &msg)
Log status (with LOG_NOTICE level of priority).
virtual int appShutdown()
Do any needed shutdown tasks. Currently nothing in this app.
mzmqClient()
Default c'tor.
virtual void reportWarning(const std::string &msg)
Log a warning.
virtual void reportInfo(const std::string &msg)
Log status (with LOG_INFO level of priority).
~mzmqClient() noexcept
Destructor.
virtual void setupConfig()
Setup the configuration system (called by MagAOXApp::setup())
virtual int appStartup()
Startup functions.
virtual void loadConfig()
load the configuration system results (called by MagAOXApp::setup())
std::vector< std::string > m_shMemImNames
virtual void reportError(const std::string &msg, const std::string &file, int line)
Log an error.
static constexpr logPrioT LOG_NOTICE
A normal but significant condition.
static constexpr logPrioT LOG_INFO
Informational. The info log level is the lowest level recorded during normal operations.
static constexpr logPrioT LOG_WARNING
A condition has occurred which may become an error, but the process continues.