Debian Codegraph @

testing/projects/cpp_nesting/include/top_level.hpp

raw
1 /***************************************************************************************
2 * This file is dedicated to the public domain. If your jurisdiction requires a *
3 * specific license: *
4 * *
5 * Copyright (c) Stephen McDowell, 2017-2024 *
6 * License: CC0 1.0 Universal *
7 * License Text: https://creativecommons.org/publicdomain/zero/1.0/legalcode *
8 **************************************************************************************/
9 /**
10 * \file
11 *
12 * \brief This file should be at the top of the file hierarchy.
13 */
14 #pragma once
15
16 #include <string>
17
18 /// A top level structure that should be at the root of the class hierarchy.
19 struct top_level {
20 /**
21 * \brief Creates a top_level structure.
22 *
23 * \param name
24 * The name of this top-level structure. See \ref mName.
25 */
26 top_level(const std::string &name) : mName(name) { }
27
28 /// The name of this top-level structure.
29 std::string mName;
30 };