2
0

msg.inline.h 935 B

12345678910111213141516171819202122232425262728293031323334353637
  1. #ifndef AFUN_MSG_INLINE_H
  2. #define AFUN_MSG_INLINE_H
  3. #include "msg.h"
  4. namespace aFuncore {
  5. inline NormalMessage::NormalMessage(Object *obj_) : obj {obj_} {
  6. }
  7. inline NormalMessage::NormalMessage(NormalMessage &&msg) noexcept : obj {msg.obj}{
  8. msg.obj = nullptr;
  9. }
  10. inline Object *NormalMessage::getObject() {
  11. return obj;
  12. }
  13. inline ErrorMessage::ErrorMessage(ErrorMessage &&msg) noexcept
  14. : error_type{std::move(msg.error_type)}, error_info{std::move(msg.error_info)},
  15. trackback{std::move(msg.trackback)}, inter{msg.inter}{
  16. }
  17. inline std::string ErrorMessage::getErrorType() const {
  18. return error_type;
  19. }
  20. inline std::string ErrorMessage::getErrorInfo() const {
  21. return error_info;
  22. }
  23. inline const std::list<ErrorMessage::TrackBack> &ErrorMessage::getTrackBack() const {
  24. return trackback;
  25. }
  26. }
  27. #endif //AFUN_MSG_INLINE_H