mirror of
https://github.com/TomHarte/CLK.git
synced 2024-11-23 18:31:53 +00:00
1de2631877
Sprinkle includes of the <cstdint> header as needed to make the build succeed with GCC 13, this fixes both with SDL and Qt builds.
32 lines
539 B
C++
32 lines
539 B
C++
//
|
|
// StringSerialiser.hpp
|
|
// Clock Signal
|
|
//
|
|
// Created by Thomas Harte on 13/05/2018.
|
|
// Copyright 2018 Thomas Harte. All rights reserved.
|
|
//
|
|
|
|
#ifndef StringSerialiser_hpp
|
|
#define StringSerialiser_hpp
|
|
|
|
#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;
|
|
};
|
|
|
|
}
|
|
|
|
#endif /* StringSerialiser_hpp */
|