Fabric 0.2.0
Loading...
Searching...
No Matches
structs.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <map>
4#include <string>
5#include <vector>
6#include <capabilities2_events/event_parameters.hpp>
7
8namespace fabric
9{
10
21
25struct node
26{
27 std::string interface = "";
28 std::string provider = "";
29 capabilities2_events::EventParameters parameters;
30 int instance_id = -1;
31
32 bool exists() const
33 {
34 return (!interface.empty() && !provider.empty());
35 }
36};
37
50
68
69struct Plan
70{
71 std::string plan_id;
72 std::string plan;
73 std::string bond_id;
74 std::map<int, connection> connections;
75 std::vector<std::string> rejected_list;
77};
78
80{
81 std::string interface;
82 std::string provider;
84 std::vector<std::string> alt_providers;
85};
86
87} // namespace fabric
Definition parser_base.hpp:9
@ ON_START
Definition structs.hpp:16
@ ON_FAILURE
Definition structs.hpp:18
@ ON_SUCCESS
Definition structs.hpp:17
@ ON_STOP
Definition structs.hpp:19
PlanStatus
Definition structs.hpp:51
Definition structs.hpp:80
std::string interface
Definition structs.hpp:81
std::vector< std::string > alt_providers
Definition structs.hpp:84
std::string provider
Definition structs.hpp:82
bool is_semantic
Definition structs.hpp:83
Definition structs.hpp:70
std::vector< std::string > rejected_list
Definition structs.hpp:75
PlanStatus status
Definition structs.hpp:76
std::map< int, connection > connections
Definition structs.hpp:74
std::string plan
Definition structs.hpp:72
std::string plan_id
Definition structs.hpp:71
std::string bond_id
Definition structs.hpp:73
Structure representing connections between nodes.
Definition structs.hpp:42
std::string description
Definition structs.hpp:48
node on_success
Definition structs.hpp:46
node on_start
Definition structs.hpp:44
node source
Definition structs.hpp:43
node on_failure
Definition structs.hpp:47
node on_stop
Definition structs.hpp:45
Structure representing a node in the fabric.
Definition structs.hpp:26
std::string provider
Definition structs.hpp:28
std::string interface
Definition structs.hpp:27
bool exists() const
Definition structs.hpp:32
capabilities2_events::EventParameters parameters
Definition structs.hpp:29
int instance_id
Definition structs.hpp:30