| eRPC Generator (erpcgen) Rev. 1.8.1 NXP Semiconductors

- Main Page
- Classes
- Files

- File List

VoidType.h
1 /*
2 * Copyright (c) 2014, Freescale Semiconductor, Inc.
3 * Copyright 2016 NXP
4 * All rights reserved.
5 *
6 *
7 * SPDX-License-Identifier: BSD-3-Clause
8 */
9
10 #ifndef _EMBEDDED_RPC__VOIDTYPE_H_
11 #define _EMBEDDED_RPC__VOIDTYPE_H_
12
13 #include "DataType.h"
14
15 #include <string>
16
18 // Classes
20
21 namespace erpcgen {
22
26 class VoidType : public DataType
27 {
28 public:
34 VoidType()
35 : DataType("(void)", kVoidType)
36 {
37 }
38
44 virtual bool isVoid() const { return true; }
45
59 virtual std::string getDescription() const { return "<void>"; }
60 };
61
62 } // namespace erpcgen
63
64 #endif // _EMBEDDED_RPC__VOIDTYPE_H_
erpcgen::VoidType::VoidType
VoidType()
Constructor.
Definition: VoidType.h:34
erpcgen::VoidType::isVoid
virtual bool isVoid() const
This function return "true" value for identify void type.
Definition: VoidType.h:44
erpcgen::DataType
Base class for data types.
Definition: DataType.h:26
erpcgen::VoidType::getDescription
virtual std::string getDescription() const
This function returns description about the void.
Definition: VoidType.h:59
erpcgen::VoidType
Void data type.
Definition: VoidType.h:26
erpcgen
Definition: AstNode.h:26