Jeff Thompson | fa30664 | 2013-06-17 15:06:57 -0700 | [diff] [blame^] | 1 | /* -*- 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 | |
| 16 | namespace ndn { |
| 17 | namespace wire { |
| 18 | |
| 19 | /** |
| 20 | * @brief Class defining interface for double dispatch pattern (=visitor pattern) |
| 21 | * to format variable fields in wire format |
| 22 | */ |
| 23 | class Base |
| 24 | { |
| 25 | public: |
| 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 |