Jeff Thompson | 958bf9b | 2013-10-12 17:20:51 -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 | * @author: Yingdi Yu <yingdi@cs.ucla.edu> |
| 5 | * @author: Jeff Thompson <jefft0@remap.ucla.edu> |
| 6 | * See COPYING for copyright and distribution information. |
| 7 | */ |
| 8 | |
| 9 | #ifndef NDN_DER_VISITOR_HPP |
| 10 | #define NDN_DER_VISITOR_HPP |
| 11 | |
Jeff Thompson | d0a7d6d | 2013-10-15 12:34:26 -0700 | [diff] [blame] | 12 | // We can use ndnboost::any because this is an internal header and will not conflict with the application if it uses boost::any. |
| 13 | #include <ndnboost/any.hpp> |
| 14 | |
Jeff Thompson | 958bf9b | 2013-10-12 17:20:51 -0700 | [diff] [blame] | 15 | namespace ndn { |
| 16 | |
| 17 | namespace der { |
| 18 | |
Jeff Thompson | 958bf9b | 2013-10-12 17:20:51 -0700 | [diff] [blame] | 19 | class DerBool; |
| 20 | class DerInteger; |
| 21 | class DerPrintableString; |
| 22 | class DerBitString; |
| 23 | class DerNull; |
| 24 | class DerOctetString; |
| 25 | class DerOid; |
| 26 | class DerSequence; |
| 27 | class DerGtime; |
| 28 | |
| 29 | class Visitor |
| 30 | { |
| 31 | public: |
Jeff Thompson | d0a7d6d | 2013-10-15 12:34:26 -0700 | [diff] [blame] | 32 | virtual ndnboost::any visit(DerBool&, ndnboost::any) = 0; |
| 33 | virtual ndnboost::any visit(DerInteger&, ndnboost::any) = 0; |
| 34 | virtual ndnboost::any visit(DerPrintableString&, ndnboost::any) = 0; |
| 35 | virtual ndnboost::any visit(DerBitString&, ndnboost::any) = 0; |
| 36 | virtual ndnboost::any visit(DerNull&, ndnboost::any) = 0; |
| 37 | virtual ndnboost::any visit(DerOctetString&, ndnboost::any) = 0; |
| 38 | virtual ndnboost::any visit(DerOid&, ndnboost::any) = 0; |
| 39 | virtual ndnboost::any visit(DerSequence&, ndnboost::any) = 0; |
| 40 | virtual ndnboost::any visit(DerGtime&, ndnboost::any) = 0; |
Jeff Thompson | 958bf9b | 2013-10-12 17:20:51 -0700 | [diff] [blame] | 41 | }; |
| 42 | |
| 43 | } // der |
| 44 | |
| 45 | } |
| 46 | |
| 47 | #endif |