msg.inline.h 565 B

123456789101112131415161718192021222324252627
  1. #ifndef AFUN_MSG_INLINE_H
  2. #define AFUN_MSG_INLINE_H
  3. #include "msg.h"
  4. namespace aFuncore {
  5. inline Message::Message(const std::string &type_) : type {type_}, next {nullptr} {
  6. }
  7. inline NormalMessage::NormalMessage(Object *obj_) : Message("NORMAL"), obj {obj_} {
  8. }
  9. inline Object *NormalMessage::getObject() {
  10. return obj;
  11. }
  12. inline std::string ErrorMessage::getErrorType() {
  13. return error_type;
  14. }
  15. inline std::string ErrorMessage::getErrorInfo() {
  16. return error_info;
  17. }
  18. }
  19. #endif //AFUN_MSG_INLINE_H