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