Classes | |
| struct | FolderConfig |
| struct | MethodArgConfig |
| struct | MethodConfig |
| struct | MethodSimulationConfig |
| struct | ServerConfigYaml |
| struct | VariableNodeConfig |
| struct | VariableSimulationConfig |
Functions | |
| ServerConfigYaml | LoadConfig (const std::string &path) |
Load a YAML file into a ServerConfigYaml. | |
| int | Serve (const ServerConfigYaml &cfg, std::atomic< bool > &stop_flag) |
Run an OPC UA server defined by cfg until stop_flag is set. | |
| ServerConfigYaml eso::uatools::itest::LoadConfig | ( | const std::string & | path | ) |
Load a YAML file into a ServerConfigYaml.
| std::runtime_error | on parse / structure failure. |
| int eso::uatools::itest::Serve | ( | const ServerConfigYaml & | cfg, |
| std::atomic< bool > & | stop_flag ) |
Run an OPC UA server defined by cfg until stop_flag is set.
Builds the address space (folders, variables, methods), starts the open62541 server-side event loop, and blocks until the caller flips stop_flag to true. Returns 0 on clean shutdown, non-zero on setup or run failure.
Memory ownership: any allocations made for the address space (method contexts, scalar-waveform simulation runtimes, ...) are owned by Serve() and released on return — safe to call repeatedly in the same process.