STAR
Cal STAR — firmware, DAQ server, and engine design
Loading...
Searching...
No Matches
ScriptStates.cpp File Reference
#include "control/ScriptStates.hpp"
#include <algorithm>
#include <fstream>
#include <set>
#include <sstream>
#include "script/ScriptConfig.hpp"
Include dependency graph for ScriptStates.cpp:

Go to the source code of this file.

Namespaces

namespace  sequencer
namespace  sequencer::anonymous_namespace{ScriptStates.cpp}

Functions

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.
bool sequencer::anonymous_namespace{ScriptStates.cpp}::readFile (const std::string &path, std::string &out)
std::string sequencer::anonymous_namespace{ScriptStates.cpp}::joinPath (const std::string &dir, const std::string &leaf)
std::string sequencer::anonymous_namespace{ScriptStates.cpp}::renderDiag (const std::string &file, const fsw::script::Diagnostic &d)
 One diagnostic rendered the way an operator should see it on the panel.
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.