Line data Source code
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 0 : std::string stateIntToString(int st)
19 : {
20 0 : if( st == OUTLET_STATE_OFF ) return "Off";
21 0 : else if( st == OUTLET_STATE_INTERMEDIATE ) return "Int";
22 0 : else if( st == OUTLET_STATE_ON ) return "On";
23 0 : else return "Unk";
24 : }
25 :
26 : } //namespace dev
27 : } //namespace app
28 : } //namespace MagAOX
29 :
|