msg.inline.h 858 B

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