24#include "Conversion.hpp"
50 SegmentsPtr
Convert(
const SegmentsPtr& input)
const;
66 std::string* output)
const;
76 const std::list<ConversionPtr>
GetConversions()
const {
return conversions; }
79 const std::list<ConversionPtr> conversions;
ConversionChain(const std::list< ConversionPtr > _conversions)
Constructs a chain from an ordered list of conversions.
Definition ConversionChain.cpp:27
SegmentsPtr Convert(const SegmentsPtr &input) const
Passes input through every conversion in the chain sequentially and returns the final Segments.
Definition ConversionChain.cpp:30
void AppendConvertedSegment(const char *segment, std::string *output) const
Converts the null-terminated segment through all conversions and appends the result to output.
Definition ConversionChain.cpp:38
std::vector< SegmentsPtr > ConvertWithTrace(const SegmentsPtr &input) const
Converts input through the chain and records every intermediate Segments after each conversion stage.
Definition ConversionChain.cpp:94
const std::list< ConversionPtr > GetConversions() const
Returns the list of conversions in application order.
Definition ConversionChain.hpp:76