DatOperationResult.h 723 B

1234567891011121314151617181920212223242526272829303132333435
  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) {
  19. result = other.result;
  20. msg = other.msg;
  21. return *this;
  22. }
  23. RESULT result;
  24. std::string msg;
  25. };
  26. }
  27. }
  28. #endif //LOTRO_DAT_LIBRARY_DATOPERATIONRESULT_H