blob: 7f8e6deee4bcaa1b5dbec5f8b6e41e76a6e8e886 [file] [log] [blame]
Alexander Afanasyev8b379052011-08-21 16:58:20 -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: Alexander Afanasyev <alexander.afanasyev@ucla.edu>
19 */
20
21#include "ccnb-parser-void-no-argu-depth-first-visitor.h"
22
23#include "ns3/ccnb-parser-blob.h"
24#include "ns3/ccnb-parser-udata.h"
25#include "ns3/ccnb-parser-tag.h"
26#include "ns3/ccnb-parser-dtag.h"
27#include "ns3/ccnb-parser-attr.h"
28#include "ns3/ccnb-parser-dattr.h"
29#include "ns3/ccnb-parser-ext.h"
30
31#include <boost/foreach.hpp>
32
33namespace ns3 {
34namespace CcnbParser {
35
36void
37VoidNoArguDepthFirstVisitor::visit (Blob &n)
38{
39 // Buffer n.m_blob;
40}
41
42void
43VoidNoArguDepthFirstVisitor::visit (Udata &n)
44{
45 // std::string n.m_udata;
46}
47
48void
49VoidNoArguDepthFirstVisitor::visit (Tag &n)
50{
51 // std::string n.m_tag;
52 // std::list<Ptr<Block> > n.m_attrs;
53 // std::list<Ptr<Block> > n.m_nestedBlocks;
54 BOOST_FOREACH (Ptr<Block> block, n.m_attrs)
55 {
56 block->accept (*this);
57 }
58 BOOST_FOREACH (Ptr<Block> block, n.m_nestedBlocks)
59 {
60 block->accept (*this);
61 }
62}
63
64void
65VoidNoArguDepthFirstVisitor::visit (Dtag &n)
66{
67 // uint32_t n.m_dtag;
68 // std::list<Ptr<Block> > n.m_attrs;
69 // std::list<Ptr<Block> > n.m_nestedBlocks;
70 BOOST_FOREACH (Ptr<Block> block, n.m_attrs)
71 {
72 block->accept (*this);
73 }
74 BOOST_FOREACH (Ptr<Block> block, n.m_nestedBlocks)
75 {
76 block->accept (*this);
77 }
78}
79
80void
81VoidNoArguDepthFirstVisitor::visit (Attr &n)
82{
83 // std::string n.m_attr;
84 // Ptr<Udata> n.m_value;
85}
86
87void
88VoidNoArguDepthFirstVisitor::visit (Dattr &n)
89{
90 // uint32_t n.m_dattr;
91 // Ptr<Udata> n.m_value;
92}
93
94void
95VoidNoArguDepthFirstVisitor::visit (Ext &n)
96{
97 // uint64_t n.m_extSubtype;
98}
99
100}
101}