| /* -*- 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_INFO_HPP |
| #define CHRONOCHAT_ENDORSE_INFO_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) |
| EndorseInfo(const Block& endorseWire); |
| wireDecode(const Block& endorseWire); |
| const std::vector<Endorsement>& |
| addEndorsement(const std::string& type, const std::string& value, const std::string& count); |
| wireEncode(ndn::EncodingImpl<T>& block) const; |
| std::vector<Endorsement> m_endorsements; |
| inline const std::vector<EndorseInfo::Endorsement>& |
| EndorseInfo::getEndorsements() const |
| } // namespace chronochat |
| #endif //CHRONOCHAT_ENDORSE_INFO_HPP |