-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp_info.hpp
28 lines (22 loc) · 1021 Bytes
/
app_info.hpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#pragma once
#include <string>
namespace Crashser
{
class AppInfo
{
public:
AppInfo() = default;
AppInfo(std::string name, std::string version = "", std::string programming_language = "C++")
: m_name{std::move(name)}, m_version{std::move(version)}, m_programming_language{std::move(programming_language)} {}
void setName(std::string name) { m_name = std::move(name); }
void setVersion(std::string version) { m_version = std::move(version); }
void setProgrammingLanguage(std::string programming_language) { m_programming_language = std::move(programming_language); }
const std::string& getName() const noexcept { return m_name; };
const std::string& getVersion() const noexcept { return m_version; };
const std::string& getProgrammingLanguage() const noexcept { return m_programming_language; };
private:
std::string m_name;
std::string m_version;
std::string m_programming_language = "C++";
};
}