status_codes.h 329 B

1234567891011121314151617181920212223
  1. #pragma once
  2. #include <rpcdb.h>
  3. #include <string>
  4. #include <unordered_map>
  5. using std::string;
  6. using std::unordered_map;
  7. class status_codes {
  8. private:
  9. static unordered_map<status, string> *messages;
  10. private:
  11. status_codes();
  12. public:
  13. static void init();
  14. static void destroy();
  15. static string get(status s);
  16. };