ifw-fcf  2.0.0
 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 FCF_DEVMGR_DEVICE_SHUTTER_RPC_ERRORS_H
11 #define FCF_DEVMGR_DEVICE_SHUTTER_RPC_ERRORS_H
12 
13 // System headers
14 #include <unordered_map>
15 
16 namespace fcf::devmgr::shutter {
17 
18  enum {
26  };
27 
28  const std::unordered_map<short, std::string> rpc_errors = {
29  {RPC_ERR_NOT_OP, "Cannot disable shutter. Not in OP state"},
30  {RPC_ERR_NOT_STANDBY_READY, "Cannot enable shutter. Not in READY or FAILURE."},
31  {RPC_ERR_STILL_OPENNING , "Not allowed to close the shutter while it is still openning"},
32  {RPC_ERR_STILL_CLOSING, "Not allowed to open the shutter while it is still closing"},
33  {RPC_ERR_LOCAL, "RPC calls are not allowed in Local mode"},
34  };
35 
36 }
37 #endif // FCF_DEVMGR_DEVICE_SHUTTER_RPC_ERRORS_H
Definition: shutterRpcErrors.hpp:24
Definition: shutterRpcErrors.hpp:25
Definition: shutterRpcErrors.hpp:20
Definition: shutterRpcErrors.hpp:19
const std::unordered_map< short, std::string > rpc_errors
Definition: shutterRpcErrors.hpp:28
Definition: shutterRpcErrors.hpp:22
Definition: shutterRpcErrors.hpp:23
Definition: shutterRpcErrors.hpp:21