DatOperationResult.h 632 B

12345678910111213141516171819202122232425262728293031
  1. //
  2. // Created by kikab on 04.06.2018.
  3. //
  4. #ifndef LOTRO_DAT_LIBRARY_DATOPERATIONRESULT_H
  5. #define LOTRO_DAT_LIBRARY_DATOPERATIONRESULT_H
  6. #include <string>
  7. #include <utility>
  8. extern "C++"
  9. {
  10. namespace LOTRO_DAT {
  11. class DatOperationResult {
  12. public:
  13. enum RESULT {
  14. SUCCESS = 1,
  15. ERROR = 0
  16. };
  17. DatOperationResult(RESULT result_, std::string msg_) : result(result_), msg(std::move(msg_)) {}
  18. DatOperationResult &operator=(const DatOperationResult &other) = default;
  19. RESULT result;
  20. std::string msg;
  21. };
  22. }
  23. }
  24. #endif //LOTRO_DAT_LIBRARY_DATOPERATIONRESULT_H