tlv-wire-format.hpp
1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil -*- */
22 #ifndef NDN_TLV_WIRE_FORMAT_HPP
23 #define NDN_TLV_WIRE_FORMAT_HPP
24 
25 #include "tlv-0_1_1-wire-format.hpp"
26 
27 namespace ndn {
28 
34 public:
41  static TlvWireFormat*
42  get()
43  {
44  if (!instance_)
45  instance_ = new TlvWireFormat();
46 
47  return instance_;
48  }
49 
50  // Inherit encodeInterest, etc. from the base class.
51 
52 private:
53  static TlvWireFormat* instance_;
54 };
55 
56 }
57 
58 #endif
Copyright (C) 2013-2016 Regents of the University of California.
Definition: common.hpp:35
A Tlv0_1_1WireFormat extends WireFormat to override its virtual methods to implement encoding and dec...
Definition: tlv-0_1_1-wire-format.hpp:34
A TlvWireFormat extends WireFormat to override its virtual methods to implement encoding and decoding...
Definition: tlv-wire-format.hpp:33