API
Applications
Utilities
API
Handbook
GitHub
Home
outletController.cpp
Go to the documentation of this file.
1
/** \file outletController.cpp
2
* \author Jared R. Males
3
* \brief Declares and defines a power control device framework in the MagAOXApp context
4
*
5
* \ingroup
6
*
7
*/
8
9
#include "
outletController.hpp
"
10
11
namespace
MagAOX
12
{
13
namespace
app
14
{
15
namespace
dev
16
{
17
18
std::string
stateIntToString
(
int
st)
19
{
20
if
( st ==
OUTLET_STATE_OFF
)
return
"Off"
;
21
else
if
( st ==
OUTLET_STATE_INTERMEDIATE
)
return
"Int"
;
22
else
if
( st ==
OUTLET_STATE_ON
)
return
"On"
;
23
else
return
"Unk"
;
24
}
25
26
}
//namespace dev
27
}
//namespace app
28
}
//namespace MagAOX
29
MagAOX::app::dev::stateIntToString
std::string stateIntToString(int st)
Definition:
outletController.cpp:18
MagAOX
Definition:
dm.hpp:24
outletController.hpp
Declares and defines a power control device framework in the MagAOXApp context.
OUTLET_STATE_OFF
#define OUTLET_STATE_OFF
Definition:
outletController.hpp:22
OUTLET_STATE_INTERMEDIATE
#define OUTLET_STATE_INTERMEDIATE
Definition:
outletController.hpp:23
OUTLET_STATE_ON
#define OUTLET_STATE_ON
Definition:
outletController.hpp:24
libMagAOX
app
dev
outletController.cpp
Generated by
1.9.1