| eRPC API Reference Rev. 1.8.1 NXP Semiconductors

- Main Page
- API Reference
- Classes
- Files

- File List
- File Members

erpc_client_server_common.h
Go to the documentation of this file.
1 /*
2 * Copyright 2020 NXP
3 * Copyright 2020 ACRIOS Systems s.r.o.
4 * All rights reserved.
5 *
6 *
7 * SPDX-License-Identifier: BSD-3-Clause
8 */
9
10 #ifndef _EMBEDDED_RPC__CLIENTSERVERCOMMON_H_
11 #define _EMBEDDED_RPC__CLIENTSERVERCOMMON_H_
12
13 #include "erpc_config_internal.h"
14 #if ERPC_MESSAGE_LOGGING
15 #include "erpc_message_loggers.h"
16 #endif
17 #if ERPC_PRE_POST_ACTION
18 #include "erpc_pre_post_action.h"
19 #endif
20
27 // Classes
30
31 namespace erpc {
32
38 class ClientServerCommon
39 #if ERPC_MESSAGE_LOGGING
40 #ifdef ERPC_OTHER_INHERITANCE
41 ,
42 #else
43 #define ERPC_OTHER_INHERITANCE 1
44 :
45 #endif
46 public MessageLoggers
47 #endif
48 #if ERPC_PRE_POST_ACTION
49 #ifdef ERPC_OTHER_INHERITANCE
50 ,
51 #else
52 #define ERPC_OTHER_INHERITANCE 1
53 :
54 #endif
55 public PrePostAction
56 #endif
57 {
58 public:
62 ClientServerCommon(void)
63 #ifdef ERPC_OTHER_INHERITANCE
64 #undef ERPC_OTHER_INHERITANCE
65 #endif
66 #if ERPC_MESSAGE_LOGGING
67 #ifdef ERPC_OTHER_INHERITANCE
68 ,
69 #else
70 #define ERPC_OTHER_INHERITANCE 1
71 :
72 #endif
73 MessageLoggers()
74 #endif
75 #if ERPC_PRE_POST_ACTION
76 #ifdef ERPC_OTHER_INHERITANCE
77 ,
78 #else
79 #define ERPC_OTHER_INHERITANCE 1
80 :
81 #endif
82 PrePostAction()
83 #endif
84 {};
85
89 ~ClientServerCommon(void){};
90 };
91
92 } // namespace erpc
93
96 #endif // _EMBEDDED_RPC__CLIENTSERVERCOMMON_H_
erpc_message_loggers.h
erpc_pre_post_action.h
ERPC_MESSAGE_LOGGING
#define ERPC_MESSAGE_LOGGING
erpc::ClientServerCommon
Common class inheritand by client and server class.
Definition: erpc_client_server_common.h:38
erpc::PrePostAction
Client and server may used cb functions before and after rpc call.
Definition: erpc_pre_post_action.h:39
erpc::ClientServerCommon::~ClientServerCommon
~ClientServerCommon(void)
ClientServerCommon destructor.
Definition: erpc_client_server_common.h:89
erpc
Definition: erpc_arbitrated_client_manager.h:25
erpc::ClientServerCommon::ClientServerCommon
ClientServerCommon(void)
ClientServerCommon constructor.
Definition: erpc_client_server_common.h:62
erpc::MessageLoggers
Logging messages functionality.
Definition: erpc_message_loggers.h:77