Taskolib  1.3.3
internals.h
Go to the documentation of this file.
1 
23 // SPDX-License-Identifier: LGPL-2.1-or-later
24 
25 #ifndef TASKOLIB_INTERNALS_H_
26 #define TASKOLIB_INTERNALS_H_
27 
28 #include <string>
29 #include <utility>
30 
31 #include <gul14/string_view.h>
32 
33 namespace task {
34 
37 
39 const char sequence_lua_filename[] = "sequence.lua";
40 
45 extern const gul14::string_view abort_marker;
46 
52 void check_for_control_characters(gul14::string_view str);
53 
80 std::pair<std::string, ErrorCause> remove_abort_markers(gul14::string_view error_message);
81 
82 } // namespace task
83 
84 #endif
Namespace task contains all Taskolib functions and classes.
Definition: CommChannel.h:33
const gul14::string_view abort_marker
A marker string (the word "ABORT" surrounded by Unicode stop signs) whose presence anywhere in an err...
Definition: internals.cc:36
const char sequence_lua_filename[]
Define the Lua sequence filename for storing and loading Lua script.
Definition: internals.h:39
ErrorCause
An enum detailing the possible causes of the termination of a sequence.
Definition: internals.h:36
void check_for_control_characters(gul14::string_view str)
Throw an exception if the string contains control characters.
Definition: internals.cc:47
std::pair< std::string, ErrorCause > remove_abort_markers(gul14::string_view error_message)
Remove abort markers from the given error message, beautify it, and determine the cause of the error.
Definition: internals.cc:56