eRPC Generator (erpcgen)  Rev. 1.11.0
NXP Semiconductors
VoidType.hpp
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.hpp"
14 
15 #include <string>
16 
18 // Classes
20 
21 namespace erpcgen {
22 
26 class VoidType : public DataType
27 {
28 public:
35  : DataType("(void)", kVoidType)
36  {
37  }
38 
52  virtual std::string getDescription() const override { return "<void>"; }
53 };
54 
55 } // namespace erpcgen
56 
57 #endif // _EMBEDDED_RPC__VOIDTYPE_H_
virtual std::string getDescription() const override
This function returns description about the void.
Definition: VoidType.hpp:52
VoidType()
Constructor.
Definition: VoidType.hpp:34
Base class for data types.
Definition: DataType.hpp:26
Void data type.
Definition: VoidType.hpp:26
Definition: AstNode.hpp:26