| eRPC API Reference Rev. 1.8.1 NXP Semiconductors

- Main Page
- API Reference
- Classes
- Files

- File List
- File Members

erpc_message_loggers.h
Go to the documentation of this file.
1 /*
2 * Copyright 2017 NXP
3 * All rights reserved.
4 *
5 *
6 * SPDX-License-Identifier: BSD-3-Clause
7 */
8
9 #ifndef _EMBEDDED_RPC__LOGEVENTLISTENERS_H_
10 #define _EMBEDDED_RPC__LOGEVENTLISTENERS_H_
11
12 #include "erpc_transport.h"
13
20 // Classes
23
24 namespace erpc {
25
31 class MessageLogger
32 {
33 public:
37 MessageLogger(Transport *transport)
38 : m_next(NULL)
39 , m_transport(transport){};
40
44 ~MessageLogger(void){};
45
51 MessageLogger *getNext(void) { return m_next; }
52
58 void setNext(MessageLogger *next) { m_next = next; }
59
65 Transport *getLogger(void) { return m_transport; }
66
67 protected:
68 MessageLogger *m_next;
69 Transport *m_transport;
70 };
71
77 class MessageLoggers
78 {
79 public:
83 MessageLoggers(void)
84 : m_logger(NULL){};
85
89 virtual ~MessageLoggers(void);
90
99 bool addMessageLogger(Transport *transport);
100
101 protected:
102 MessageLogger *m_logger;
111 erpc_status_t logMessage(MessageBuffer *msg);
112 };
113
114 } // namespace erpc
115
118 #endif // _EMBEDDED_RPC__LOGEVENTLISTENERS_H_
erpc::Transport
Abstract interface for transport layer.
Definition: erpc_transport.h:36
erpc_status_t
enum _erpc_status erpc_status_t
Type used for all status and error return values.
Definition: erpc_common.h:87
erpc::MessageLoggers::m_logger
MessageLogger * m_logger
Definition: erpc_message_loggers.h:102
erpc::MessageLogger::m_transport
Transport * m_transport
Definition: erpc_message_loggers.h:69
erpc::MessageLogger::m_next
MessageLogger * m_next
Definition: erpc_message_loggers.h:68
erpc::MessageLogger::MessageLogger
MessageLogger(Transport *transport)
MessageLogger constructor.
Definition: erpc_message_loggers.h:37
erpc_transport.h
erpc::MessageLogger
Logging messages objects used for logging sent/received messages.
Definition: erpc_message_loggers.h:31
erpc::MessageLogger::getNext
MessageLogger * getNext(void)
Return next logger.
Definition: erpc_message_loggers.h:51
erpc::MessageBuffer
Represents a memory buffer containing a message.
Definition: erpc_message_buffer.h:37
erpc
Definition: erpc_arbitrated_client_manager.h:25
erpc::MessageLogger::setNext
void setNext(MessageLogger *next)
Set next logger.
Definition: erpc_message_loggers.h:58
erpc::MessageLoggers::MessageLoggers
MessageLoggers(void)
Constructor.
Definition: erpc_message_loggers.h:83
erpc::MessageLogger::getLogger
Transport * getLogger(void)
Returns next transport object used for logging messages.
Definition: erpc_message_loggers.h:65
erpc::MessageLogger::~MessageLogger
~MessageLogger(void)
MessageLogger destructor.
Definition: erpc_message_loggers.h:44
erpc::MessageLoggers
Logging messages functionality.
Definition: erpc_message_loggers.h:77