blob: 8247d0919250d52aaffe32a1791b2dcfedea1c90 [file] [log] [blame]
Jeff Thompsonfa306642013-06-17 15:06:57 -07001/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil -*- */
2/*
3 * Copyright (c) 2013, Regents of the University of California
4 * Alexander Afanasyev
5 *
6 * BSD license, See the LICENSE file for more information
7 *
8 * Author: Alexander Afanasyev <alexander.afanasyev@ucla.edu>
9 */
10
11#ifndef NDN_WIRE_BASE_H
12#define NDN_WIRE_BASE_H
13
14#include "ndn-cpp/fields/signature-sha256-with-rsa.h"
15
16namespace ndn {
17namespace wire {
18
19/**
20 * @brief Class defining interface for double dispatch pattern (=visitor pattern)
21 * to format variable fields in wire format
22 */
23class Base
24{
25public:
26 virtual void
27 appendSignature (std::ostream &os, const signature::Sha256WithRsa &signature, void *userData) = 0;
28};
29
30} // wire
31} // ndn
32
33#endif // NDN_WIRE_BASE_H