STAR
Cal STAR — firmware, DAQ server, and engine design
Loading...
Searching...
No Matches
ScriptStates.hpp File Reference
#include <functional>
#include <map>
#include <string>
#include <vector>
#include "config/Config.hpp"
#include "control/StateMachine.hpp"
#include "script/StateScript.hpp"
Include dependency graph for ScriptStates.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  sequencer::DynamicState
 One dynamic state, resolved and proven usable. More...
struct  sequencer::ScriptLoadResult
 What a config load made of its dynamic states. More...
struct  sequencer::ScriptLoadContext
 Everything load_dynamic_states needs that it cannot get from Config alone. More...

Namespaces

namespace  sequencer

Functions

ScriptLoadResult sequencer::load_dynamic_states (const fsw::config::Config &cfg, const std::string &config_text, const ScriptLoadContext &ctx)
 Resolve, load and validate every [[states]] entry carrying a script_file.
bool sequencer::is_valid_script_filename (const std::string &name)
 True when name is a safe bare script filename: ^[A-Za-z0-9_-]+.script$, no separators.

Variables

constexpr uint32_t sequencer::kMaxScriptTimeoutMs = 600000
 Hard ceiling on script_timeout_ms, independent of per-state config.