/* */ #include "PStringSegment.h" #include "PStringVisitor.h" namespace aria2 { PStringSegment::PStringSegment(const std::string& value, const SharedHandle& next): value_(value), next_(next) {} PStringSegment::PStringSegment(const std::string& value): value_(value) {} PStringSegment::~PStringSegment() {} void PStringSegment::accept(PStringVisitor& visitor) { visitor.visit(*this); } const std::string& PStringSegment::getValue() const { return value_; } bool PStringSegment::hasNext() const { return next_; } SharedHandle PStringSegment::getNext() const { return next_; } } // namespace aria2