My Doxygen Markdown Project 1.0
A project to demonstrate Doxygen with Markdown
Loading...
Searching...
No Matches
example.hpp
Go to the documentation of this file.
1
10
11#ifndef EXAMPLE_HPP
12#define EXAMPLE_HPP
13
14#include <string>
15#include <vector>
16
22
24enum class Color {
28};
29
35class Example {
36public:
40 Example();
41
46 explicit Example(const std::string& name);
47
54 bool setName(const std::string& name);
55
61 std::string getName() const;
62
68 void addValue(int value);
69
74 std::vector<int> getValues() const;
75
83 static int add(int x, int y);
84
87
88private:
89 std::string name_;
90 std::vector<int> values_;
91};
92 // end of example_group
94
95#endif // EXAMPLE_HPP
Example()
Default constructor.
Definition example.cpp:9
static int add(int x, int y)
Static utility function.
Definition example.cpp:32
std::string getName() const
Get the name.
Definition example.cpp:19
Color color
Public member variable.
Definition example.hpp:86
bool setName(const std::string &name)
Set the name.
Definition example.cpp:13
void addValue(int value)
Add a value to the list.
Definition example.cpp:23
std::vector< int > getValues() const
Get all values.
Definition example.cpp:28
Color
A simple enumeration for demonstration.
Definition example.hpp:24
@ Blue
Blue color.
Definition example.hpp:27
@ Green
Green color.
Definition example.hpp:26
@ Red
Red color.
Definition example.hpp:25