2018-05-13 17:57:19 +00:00
|
|
|
//
|
|
|
|
// StringSerialiser.hpp
|
|
|
|
// Clock Signal
|
|
|
|
//
|
|
|
|
// Created by Thomas Harte on 13/05/2018.
|
2018-05-13 19:19:52 +00:00
|
|
|
// Copyright 2018 Thomas Harte. All rights reserved.
|
2018-05-13 17:57:19 +00:00
|
|
|
//
|
|
|
|
|
|
|
|
#ifndef StringSerialiser_hpp
|
|
|
|
#define StringSerialiser_hpp
|
|
|
|
|
2023-05-25 20:06:13 +00:00
|
|
|
#include <cstdint>
|
2018-05-13 17:57:19 +00:00
|
|
|
#include <string>
|
|
|
|
|
|
|
|
namespace Utility {
|
|
|
|
|
|
|
|
class StringSerialiser {
|
|
|
|
public:
|
|
|
|
StringSerialiser(const std::string &source, bool use_linefeed_only = false);
|
|
|
|
|
|
|
|
uint8_t head();
|
|
|
|
bool advance();
|
|
|
|
|
|
|
|
private:
|
|
|
|
std::string input_string_;
|
|
|
|
std::size_t input_string_pointer_ = 0;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif /* StringSerialiser_hpp */
|