blob: 840d25d29dabd3281ef7f9f930917de4a6fed055 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#ifndef GETIF_INTERFACE_H
#define GETIF_INTERFACE_H
#include <string>
#include <optional>
class interface {
public:
interface(std::string name, std::optional<std::string> addr);
std::string const& get_name(void) const;
std::optional<std::string> const& get_addr(void) const;
private:
std::string name;
std::optional<std::string> addr;
};
#endif // GETIF_INTERFACE_H
|