ifw  0.0.1-dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
shutterRpcErrors.hpp
Go to the documentation of this file.
1 
10 #ifndef DEVMGR_DEVICE_SHUTTER_RPC_ERRORS_H
11 #define DEVMGR_DEVICE_SHUTTER_RPC_ERRORS_H
12 
13 // System headers
14 #include <unordered_map>
15 
16 namespace devmgr {
17  namespace shutter {
18 
19  enum {
20  RPC_SUCCESS = 0,
21  RPC_ERR_NOT_OP = -1,
26  RPC_ERR_LOCAL = -6
27  };
28 
29  const std::unordered_map<short, std::string> rpc_errors = {
30  {RPC_ERR_NOT_OP, "Cannot disable shutter. Not in OP state"},
31  {RPC_ERR_NOT_STANDBY_READY, "Cannot enable shutter. Not in READY or FAILURE."},
32  {RPC_ERR_STILL_OPENNING , "Not allowed to close the shutter while it is still openning"},
33  {RPC_ERR_STILL_CLOSING, "Not allowed to open the shutter while it is still closing"},
34  {RPC_ERR_LOCAL, "RPC calls are not allowed in Local mode"},
35  };
36 
37  }
38 }
39 #endif // DEVMGR_DEVICE_SHUTTER_RPC_ERRORS_H
Definition: shutterRpcErrors.hpp:24
const std::unordered_map< short, std::string > rpc_errors
Definition: shutterRpcErrors.hpp:29
Definition: shutterRpcErrors.hpp:22
Definition: shutterRpcErrors.hpp:26
Definition: shutterRpcErrors.hpp:21
Definition: shutterRpcErrors.hpp:25
Definition: shutterRpcErrors.hpp:23
Definition: shutterRpcErrors.hpp:20