open62541pp 0.16.0
C++ wrapper of open62541
Loading...
Searching...
No Matches
subclass-example.hpp
Go to the documentation of this file.
1#pragma once
2#include <string>
3#include "example.hpp"
4#include <iostream>
5
6namespace MyLibrary {
7
8 /**
9 * @brief some subclass
10 */
11 template<typename TemplatedClass>
12 class SubclassExample : public Example {
13 public:
14
15 /**
16 * @bug second bug
17 * @return
18 */
19 int virtualfunc() override;
20
21 /**
22 * @brief Template function function
23 */
24 template <typename T>
25 std::shared_ptr<std::string> function_template_test(std::shared_ptr<T>& param);
26
27 /**
28 * @brief Extra long function with lots of parameters and many template types.
29 *
30 * Also has a long return type.
31 *
32 * @param param1 first parameter
33 * @param param2 second parameter
34 * @param parameter3 third parameter
35 */
36 template <typename T, typename Foo, typename Bar, typename Alice, typename Bob, typename Charlie, typename Hello, typename World>
37 std::pair<std::string, std::string> long_function_with_many_parameters(std::shared_ptr<T>& param1, std::shared_ptr<std::string>& param2, bool parameter3, Alice paramater4 Bob parameter 5) {
38 if(true) {
39 std::cout << "this even has some code." << std::endl;
40 }
41 }
42
43 };
44
45}
46
Example class to demonstrate the features of the custom CSS.
Definition example.hpp:14
int virtualfunc() override
std::pair< std::string, std::string > long_function_with_many_parameters(std::shared_ptr< T > &param1, std::shared_ptr< std::string > &param2, bool parameter3, Alice paramater4 Bob parameter 5)
Extra long function with lots of parameters and many template types.
std::shared_ptr< std::string > function_template_test(std::shared_ptr< T > &param)
Template function function.