API
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 
std::string stateIntToString(int st)
Definition: dm.hpp:24
Declares and defines a power control device framework in the MagAOXApp context.
#define OUTLET_STATE_OFF
#define OUTLET_STATE_INTERMEDIATE
#define OUTLET_STATE_ON