diff options
author | David Crocker <dcrocker@eschertech.com> | 2020-01-04 21:15:22 +0300 |
---|---|---|
committer | David Crocker <dcrocker@eschertech.com> | 2020-01-04 21:15:22 +0300 |
commit | 5bd28a1aea25e83e6e1d7a0ca50cd000e7baf1a7 (patch) | |
tree | 059d11bfc384d80c7ff07d3457e994ac50a0c07e /src/Storage/FileInfoParser.h | |
parent | 8ded9143fa9d07dcddd525683403980c42881f1a (diff) |
Conditional GCode fixes and exception specifiers
Loops are now working
Added noexcept specifiers to omst of the remaining C++ source files
Diffstat (limited to 'src/Storage/FileInfoParser.h')
-rw-r--r-- | src/Storage/FileInfoParser.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/Storage/FileInfoParser.h b/src/Storage/FileInfoParser.h index 211bfd79..4c2e6eb4 100644 --- a/src/Storage/FileInfoParser.h +++ b/src/Storage/FileInfoParser.h @@ -42,23 +42,23 @@ enum FileParseState class FileInfoParser { public: - FileInfoParser(); + FileInfoParser() noexcept; // The following method needs to be called until it returns true - this may take a few runs - bool GetFileInfo(const char *filePath, GCodeFileInfo& info, bool quitEarly); + bool GetFileInfo(const char *filePath, GCodeFileInfo& info, bool quitEarly) noexcept; static constexpr const char* SimulatedTimeString = "\n; Simulated print time"; // used by FileInfoParser and MassStorage private: // G-Code parser methods - bool FindHeight(const char* buf, size_t len); - bool FindFirstLayerHeight(const char* buf, size_t len); - bool FindLayerHeight(const char* buf, size_t len); - bool FindSlicerInfo(const char* buf, size_t len); - bool FindPrintTime(const char* buf, size_t len); - bool FindSimulatedTime(const char* buf, size_t len); - unsigned int FindFilamentUsed(const char* buf, size_t len); + bool FindHeight(const char* buf, size_t len) noexcept; + bool FindFirstLayerHeight(const char* buf, size_t len) noexcept; + bool FindLayerHeight(const char* buf, size_t len) noexcept; + bool FindSlicerInfo(const char* buf, size_t len) noexcept; + bool FindPrintTime(const char* buf, size_t len) noexcept; + bool FindSimulatedTime(const char* buf, size_t len) noexcept; + unsigned int FindFilamentUsed(const char* buf, size_t len) noexcept; // We parse G-Code files in multiple stages. These variables hold the required information Mutex parserMutex; |