summaryrefslogtreecommitdiff
path: root/src/include/address.h
blob: 2e354be63233946f4af6bbf5f5509683c8c46106 (plain)
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
/**
 * @file   address.h
 * @brief  Declaration of the Address class.
 * @author Andreas Aardal Hanssen
 * @date   2002-2005
 */

#ifndef address_h_included
#define address_h_included

#include <string>
#include <string_view>

namespace Binc {

  struct Address {
    std::string name;
    std::string local;
    std::string host;

    std::string toParenList() const;

    static Address from(std::string name, std::string_view addr);
    static Address from(std::string_view wholeaddr);
  };
}

#endif