CCF
Loading...
Searching...
No Matches
get_name.h
Go to the documentation of this file.
1// Copyright (c) Microsoft Corporation. All rights reserved.
2// Licensed under the Apache 2.0 License.
3#pragma once
4
5#include <string>
6
7namespace ccf::kv
8{
9 struct GetName
10 {
11 protected:
12 std::string name;
13
14 public:
15 GetName(std::string s) : name(std::move(s)) {}
16 virtual ~GetName() = default;
17
18 [[nodiscard]] const std::string& get_name() const
19 {
20 return name;
21 }
22 };
23}
Definition app_interface.h:19
STL namespace.
Definition get_name.h:10
GetName(std::string s)
Definition get_name.h:15
const std::string & get_name() const
Definition get_name.h:18
virtual ~GetName()=default
std::string name
Definition get_name.h:12