msg.inline.h 626 B

1234567891011121314151617181920212223242526
  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 TopMessage::TopMessage(const std::string &type_) : Message(type_) {
  8. }
  9. inline NormalMessage::NormalMessage(Object *obj_) : TopMessage("NORMAL"), obj {obj_} {
  10. }
  11. inline Object *NormalMessage::getObject() {
  12. return obj;
  13. }
  14. inline std::string ErrorMessage::getErrorType() {return error_type;}
  15. inline std::string ErrorMessage::getErrorInfo() {return error_info;}
  16. }
  17. #endif //AFUN_MSG_INLINE_H