API
ioDevice.cpp
Go to the documentation of this file.
1 /** \file ioDevice.cpp
2  * \author Jared R. Males
3  * \brief Configuration and control of an input and output device
4  *
5  * \ingroup app_files
6  *
7  */
8 
9 #include "ioDevice.hpp"
10 
11 
12 namespace MagAOX
13 {
14 namespace app
15 {
16 namespace dev
17 {
18 
19 
20 int ioDevice::setupConfig( mx::app::appConfigurator & config )
21 {
22  config.add("device.readTimeout", "", "device.readTimeout", mx::app::argType::Required, "device", "readTimeout", false, "int", "timeout for reading from device");
23  config.add("device.writeTimeout", "", "device.writeTimeout", mx::app::argType::Required, "device", "writeTimeout", false, "int", "timeout for writing to device");
24 
25  return 0;
26 }
27 
28 int ioDevice::loadConfig( mx::app::appConfigurator & config )
29 {
30  config(m_readTimeout, "device.readTimeout");
31  config(m_writeTimeout, "device.writeTimeout");
32 
33  return 0;
34 }
35 
37 {
38  return 0;
39 }
40 
42 {
43  return 0;
44 }
45 
46 } //namespace dev
47 } //namespace tty
48 } //namespace MagAOX
49 
Configuration and control of an input and output device.
Definition: dm.hpp:24
unsigned m_writeTimeout
The write timeout [msec].
Definition: ioDevice.hpp:29
int loadConfig(mx::app::appConfigurator &config)
Load the device section from an application configurator.
Definition: ioDevice.cpp:28
int appStartup()
Perform application startup steps specific to an ioDevice.
Definition: ioDevice.cpp:36
int setupConfig(mx::app::appConfigurator &config)
Setup an application configurator for the device section.
Definition: ioDevice.cpp:20
unsigned m_readTimeout
The read timeout [msec].
Definition: ioDevice.hpp:28
int appLogic()
Perform application logic steps specific to an ioDevice during the main event loop.
Definition: ioDevice.cpp:41