OpenSDN source code
es_import.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2013 Juniper Networks, Inc. All rights reserved.
3  * Copyright Contributors to the OpenSDN project
4  */
5 
6 #ifndef SRC_BGP_EXTENDED_COMMUNITY_ES_IMPORT_H_
7 #define SRC_BGP_EXTENDED_COMMUNITY_ES_IMPORT_H_
8 
10 
11 #include <boost/array.hpp>
12 #include <stdint.h>
13 
14 #include <string>
15 
16 class MacAddress;
17 
18 class EsImport {
19 public:
20  static const int kSize = 8;
21  typedef boost::array<uint8_t, kSize> bytes_type;
22 
23  explicit EsImport(const bytes_type &data);
24  std::string ToString() const;
25 
26 private:
27  MacAddress mac_address() const;
28 
30 };
31 
32 #endif // SRC_BGP_EXTENDED_COMMUNITY_ES_IMPORT_H_
MacAddress mac_address() const
Definition: es_import.cc:20
std::string ToString() const
Definition: es_import.cc:29
EsImport(const bytes_type &data)
Definition: es_import.cc:16
boost::array< uint8_t, kSize > bytes_type
Definition: es_import.h:21
static const int kSize
Definition: es_import.h:20
bytes_type data_
Definition: es_import.h:29