MostlyHarmless 0.0.1
Loading...
Searching...
No Matches
mostlyharmless_HostInfo.h
Go to the documentation of this file.
1//
2// Created by Syl Morrison on 25/01/2026.
3//
4
5#ifndef GLEO_MOSTLYHARMLESS_HOSTINFO_H
6#define GLEO_MOSTLYHARMLESS_HOSTINFO_H
7#include <string>
12 struct HostInfoView {
13 std::string_view hostName;
14 std::string_view vendorName;
15 std::string_view version;
16 };
17
21 struct HostInfo {
22 std::string hostName;
23 std::string vendorName;
24 std::string version;
25 auto view() const -> HostInfoView {
26 return { .hostName = hostName, .vendorName = vendorName, .version = version };
27 }
28 };
29
30} // namespace mostly_harmless::utils
31#endif // GLEO_MOSTLYHARMLESS_HOSTINFO_H
Contains general purpose utility classes & functions.
Definition mostlyharmless_TaskThread.h:12
Contains some strings to help identify the host currently running your plugin.
Definition mostlyharmless_HostInfo.h:12
std::string_view vendorName
Definition mostlyharmless_HostInfo.h:14
std::string_view hostName
Definition mostlyharmless_HostInfo.h:13
std::string_view version
Definition mostlyharmless_HostInfo.h:15