1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-12-12 08:30:05 +00:00
CLK/Machines/Utility/StringSerialiser.hpp
2024-01-16 23:34:46 -05:00

29 lines
459 B
C++

//
// StringSerialiser.hpp
// Clock Signal
//
// Created by Thomas Harte on 13/05/2018.
// Copyright 2018 Thomas Harte. All rights reserved.
//
#pragma once
#include <cstdint>
#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;
};
}