Taskolib  1.3.3
deserialize_sequence.h
Go to the documentation of this file.
1 
23 // SPDX-License-Identifier: LGPL-2.1-or-later
24 
25 #ifndef TASKOLIB_DESERIALIZE_SEQUENCE_H_
26 #define TASKOLIB_DESERIALIZE_SEQUENCE_H_
27 
28 #include <filesystem>
29 #include <iostream>
30 #include <vector>
31 
32 #include <gul14/string_view.h>
33 
34 #include "taskolib/Sequence.h"
35 #include "taskolib/Step.h"
36 #include "taskolib/Tag.h"
37 
38 namespace task {
39 
49 std::istream& operator>>(std::istream& stream, Step& step);
50 
107 Step load_step(const std::filesystem::path& lua_file);
108 
116 void load_sequence_parameters(const std::filesystem::path& folder, Sequence& sequence);
117 
123 std::vector<Tag> parse_tags(gul14::string_view str);
124 
128 bool parse_bool(gul14::string_view str);
129 
138 Timeout parse_timeout(gul14::string_view str);
139 
140 } // namespace task
141 
142 #endif
A sequence of Steps.
Declaration of the Step class.
Declaration of the Tag class.
Namespace task contains all Taskolib functions and classes.
Definition: CommChannel.h:33
void load_sequence_parameters(const std::filesystem::path &folder, Sequence &sequence)
Load sequence parameters like the step setup script and the sequence timeout.
Definition: deserialize_sequence.cc:269
std::istream & operator>>(std::istream &stream, Step &step)
Deserialize parameters of Step from the input stream.
Definition: deserialize_sequence.cc:154
bool parse_bool(gul14::string_view str)
Parse a bool expression from a string.
Definition: deserialize_sequence.cc:315
Step load_step(const std::filesystem::path &lua_file)
Read a Step from a file and return it.
Definition: deserialize_sequence.cc:256
Timeout parse_timeout(gul14::string_view str)
Parse a string into a Timeout value.
Definition: deserialize_sequence.cc:326
std::vector< Tag > parse_tags(gul14::string_view str)
Parse a whitespace-separated string into a list of tags.
Definition: deserialize_sequence.cc:305