blob: f66bf3c51245c1a570439bc4208424ddf03e3e40 [file] [log] [blame]
Alexander Afanasyev08d984e2011-08-13 19:20:22 -07001/* -*- Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil; -*- */
2/*
3 * Copyright (c) 2011 University of California, Los Angeles
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License version 2 as
7 * published by the Free Software Foundation;
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 *
18 * Author: Ilya Moiseenko <iliamo@cs.ucla.edu>
19 * Alexander Afanasyev <alexander.afanasyev@ucla.edu>
20 */
21
22#include "ccnx-content-object-header.h"
23
24NS_LOG_COMPONENT_DEFINE ("CcnxContentObjectHeader");
25
26namespace ns3
27{
28
29NS_OBJECT_ENSURE_REGISTERED (CcnxContentObjectHeader);
30
31TypeId
32CcnxContentObjectHeader::GetTypeId (void)
33{
34 static TypeId tid = TypeId ("ns3::CcnxContentObjectHeader")
35 .SetParent<Header> ()
36 .AddConstructor<CcnxContentObjectHeader> ()
37 ;
38 return tid;
39}
40
41CcnxContentObjectHeader::CcnxContentObjectHeader ()
42{
43}
44
45void
46CcnxContentObjectHeader::SetName (const Ptr<Name::Components> &name)
47{
48 m_name = name;
49}
50
51const Name::Components&
52CcnxContentObjectHeader::GetName () const
53{
54 return *m_name;
55}
56
57uint32_t
58CcnxContentObjectHeader::GetSerializedSize (void) const
59{
60 return 0;
61}
62
63void
64CcnxContentObjectHeader::Serialize (Buffer::Iterator start) const
65{
66 return;
67}
68
69uint32_t
70CcnxContentObjectHeader::Deserialize (Buffer::Iterator start)
71{
72 return 0;
73}
74
75TypeId
76CcnxContentObjectHeader::GetInstanceTypeId (void) const
77{
78 return GetTypeId ();
79}
80
81void
82CcnxContentObjectHeader::Print (std::ostream &os) const
83{
84 os << "ContentObject: " << *m_name;
85}
86
87} // namespace ns3
88