| /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil -*- */ |
| * Copyright (c) 2013, Regents of the University of California |
| * BSD license, See the LICENSE file for more information |
| * Author: Qiuhan Ding <qiuhanding@cs.ucla.edu> |
| #ifndef CHRONOCHAT_ENDORSE_EXTENSION_HPP |
| #define CHRONOCHAT_ENDORSE_EXTENSION_HPP |
| #include <ndn-cxx/util/concepts.hpp> |
| #include <ndn-cxx/encoding/block.hpp> |
| #include <ndn-cxx/encoding/encoding-buffer.hpp> |
| class Error : public std::runtime_error |
| Error(const std::string& what) |
| : std::runtime_error(what) |
| EndorseExtension(const Block& endorseWire); |
| wireDecode(const Block& endorseWire); |
| const std::list<std::string>& |
| addEntry(const std::string& entry); |
| removeEntry(const std::string& entry); |
| wireEncode(ndn::EncodingImpl<T>& block) const; |
| std::list<std::string> m_entries; |
| inline const std::list<std::string>& |
| EndorseExtension::getEntries() const |
| } // namespace chronochat |
| #endif //CHRONOCHAT_ENDORSE_EXTENSION_HPP |