Line data Source code
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 0 : int ioDevice::setupConfig( mx::app::appConfigurator & config )
21 : {
22 0 : config.add("device.readTimeout", "", "device.readTimeout", mx::app::argType::Required, "device", "readTimeout", false, "int", "timeout for reading from device");
23 0 : config.add("device.writeTimeout", "", "device.writeTimeout", mx::app::argType::Required, "device", "writeTimeout", false, "int", "timeout for writing to device");
24 :
25 0 : return 0;
26 : }
27 :
28 0 : int ioDevice::loadConfig( mx::app::appConfigurator & config )
29 : {
30 0 : config(m_readTimeout, "device.readTimeout");
31 0 : config(m_writeTimeout, "device.writeTimeout");
32 :
33 0 : return 0;
34 : }
35 :
36 0 : int ioDevice::appStartup()
37 : {
38 0 : return 0;
39 : }
40 :
41 0 : int ioDevice::appLogic()
42 : {
43 0 : return 0;
44 : }
45 :
46 : } //namespace dev
47 : } //namespace tty
48 : } //namespace MagAOX
49 :
|