15#include <milkzmqServer.hpp>
19#include "../../libMagAOX/libMagAOX.hpp"
20#include "../../magaox_git_version.h"
94 const std::string &file,
115 "server.imagePort",
"",
"server.imagePort", argType::Required,
"server",
"imagePort",
false,
"int",
"" );
118 "server.shmimNames",
"",
"server.shmimNames", argType::Required,
"server",
"shmimNames",
false,
"string",
"" );
121 "server.usecSleep",
"",
"server.usecSleep", argType::Required,
"server",
"usecSleep",
false,
"int",
"" );
123 config.add(
"server.fpsTgt",
"",
"server.fpsTgt", argType::Required,
"server",
"fpsTgt",
false,
"float",
"" );
125 config.add(
"server.fpsGain",
"",
"server.fpsGain", argType::Required,
"server",
"fpsGain",
false,
"float",
"" );
127 config.add(
"server.compress",
135 "Flag to turn on compression for INT16 and UINT16." );
146 config(
m_fpsTgt,
"server.fpsTgt" );
153#include <sys/syscall.h>
212 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 writing ImageStreamIO streams to a zeroMQ channel.
virtual void setupConfig()
Setup the configuration system (called by MagAOXApp::setup())
virtual void loadConfig()
load the configuration system results (called by MagAOXApp::setup())
virtual int appShutdown()
Do any needed shutdown tasks. Currently nothing in this app.
virtual int appStartup()
Startup functions.
virtual void reportError(const std::string &msg, const std::string &file, int line)
Log an error.
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).
mzmqServer()
Default c'tor.
virtual void reportInfo(const std::string &msg)
Log status (with LOG_INFO level of priority).
std::vector< std::string > m_shMemImNames
~mzmqServer() noexcept
Destructor.
virtual void reportWarning(const std::string &msg)
Log a warning.
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.