123456789101112131415161718192021222324252627282930313233343536373839 |
- #ifndef AFUN_MSG_INLINE_H
- #define AFUN_MSG_INLINE_H
- #include <utility>
- #include "msg.h"
- namespace aFuncore {
- inline NormalMessage::NormalMessage(Object *obj_) : obj {obj_} {
- }
- inline NormalMessage::NormalMessage(NormalMessage &&msg) noexcept : obj {msg.obj}{
- msg.obj = nullptr;
- }
- inline Object *NormalMessage::getObject() {
- return obj;
- }
- inline ErrorMessage::ErrorMessage(ErrorMessage &&msg) noexcept
- : error_type{std::move(msg.error_type)}, error_info{std::move(msg.error_info)},
- trackback{std::move(msg.trackback)}, inter{msg.inter}{
- }
- inline std::string ErrorMessage::getErrorType() const {
- return error_type;
- }
- inline std::string ErrorMessage::getErrorInfo() const {
- return error_info;
- }
- inline const std::list<ErrorMessage::TrackBack> &ErrorMessage::getTrackBack() const {
- return trackback;
- }
- }
- #endif //AFUN_MSG_INLINE_H
|