Rename format_manchester/ManchesterFormatted to "[sS]ymbols".

This commit is contained in:
Jared Boone 2016-05-30 11:24:59 -07:00
parent 3d22222689
commit a52d0fbd81
6 changed files with 9 additions and 9 deletions

View File

@ -73,8 +73,8 @@ CommodityType Packet::commodity_type() const {
return invalid_commodity_type;
}
ManchesterFormatted Packet::symbols_formatted() const {
return format_manchester(decoder_);
FormattedSymbols Packet::symbols_formatted() const {
return format_symbols(decoder_);
}
bool Packet::crc_ok() const {

View File

@ -68,7 +68,7 @@ public:
CommodityType commodity_type() const;
Consumption consumption() const;
ManchesterFormatted symbols_formatted() const;
FormattedSymbols symbols_formatted() const;
bool crc_ok() const;

View File

@ -38,7 +38,7 @@ size_t ManchesterDecoder::symbols_count() const {
return packet.size() / 2;
}
ManchesterFormatted format_manchester(
FormattedSymbols format_symbols(
const ManchesterDecoder& decoder
) {
const size_t payload_length_decoded = decoder.symbols_count();

View File

@ -58,12 +58,12 @@ T operator|(const T& l, const DecodedSymbol& r) {
return l | r.value;
}
struct ManchesterFormatted {
struct FormattedSymbols {
const std::string data;
const std::string errors;
};
ManchesterFormatted format_manchester(
FormattedSymbols format_symbols(
const ManchesterDecoder& decoder
);

View File

@ -29,8 +29,8 @@ Timestamp Packet::received_at() const {
return packet_.timestamp();
}
ManchesterFormatted Packet::symbols_formatted() const {
return format_manchester(decoder_);
FormattedSymbols Packet::symbols_formatted() const {
return format_symbols(decoder_);
}
Optional<Reading> Packet::reading_fsk_19k2_schrader() const {

View File

@ -147,7 +147,7 @@ public:
SignalType signal_type() const { return signal_type_; }
Timestamp received_at() const;
ManchesterFormatted symbols_formatted() const;
FormattedSymbols symbols_formatted() const;
Optional<Reading> reading() const;