API
 
Loading...
Searching...
No Matches
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
10
11namespace MagAOX
12{
13namespace app
14{
15namespace dev
16{
17
18std::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