NS-3 based Named Data Networking (NDN) simulator
ndnSIM: NDN, CCN, CCNx, content centric networks
API Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
ns3::ndn::wire::CcnbParser::Attr Class Reference

Class to represent ATTR ccnb-encoded node. More...

#include <attr.h>

Inheritance diagram for ns3::ndn::wire::CcnbParser::Attr:
Collaboration diagram for ns3::ndn::wire::CcnbParser::Attr:

Public Member Functions

 Attr (Buffer::Iterator &start, uint32_t length)
 Constructor that actually parsed ccnb-encoded ATTR block. More...
 
virtual void accept (VoidNoArguVisitor &v)
 Accept visitor void(*)()
 
virtual void accept (VoidVisitor &v, boost::any param)
 Accept visitor void(*)(boost::any)
 
virtual boost::any accept (NoArguVisitor &v)
 Accept visitor boost::any(*)()
 
virtual boost::any accept (Visitor &v, boost::any param)
 Accept visitor boost::any(*)(boost::any)
 

Public Attributes

std::string m_attr
 field holding name of the attribute
 
- Public Attributes inherited from ns3::ndn::wire::CcnbParser::BaseAttr
Ptr< Udatam_value
 Value of the attribute.
 

Additional Inherited Members

- Static Public Member Functions inherited from ns3::ndn::wire::CcnbParser::Block
static Ptr< BlockParseBlock (Buffer::Iterator &start, bool dontParseBlock=false)
 Parsing stream (recursively) and creating a parsed BLOCK object. More...
 

Detailed Description

Class to represent ATTR ccnb-encoded node.

See also
http://www.ccnx.org/releases/latest/doc/technical/BinaryEncoding.html

Definition at line 38 of file attr.h.

Constructor & Destructor Documentation

ns3::ndn::wire::CcnbParser::Attr::Attr ( Buffer::Iterator &  start,
uint32_t  length 
)

Constructor that actually parsed ccnb-encoded ATTR block.

Parameters
startbuffer iterator pointing to the first byte of ATTR block name
lengthlength of ATTR name (extracted from the value field)
See also
http://www.ccnx.org/releases/latest/doc/technical/BinaryEncoding.html

Definition at line 30 of file attr.cc.


The documentation for this class was generated from the following files: