YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
xmlclusterloader.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2006-2021 Istituto Italiano di Tecnologia (IIT)
3 * SPDX-License-Identifier: BSD-3-Clause
4 */
5
6#ifndef YARP_MANAGER_XMLCLUSTERLOADER_H
7#define YARP_MANAGER_XMLCLUSTERLOADER_H
8
11
12
13namespace yarp::manager {
14
16{
17 std::string name = "";
18 std::string address = "";
19 bool display = false;
20 std::string displayValue = "none";
21 std::string user = "";
22 std::string ssh_options = "";
23 std::string docker = "";
24 std::string conda = "";
25 std::string pixi = "";
26 bool onOff = false;
27 bool log = true;
28};
29
31{
32 std::string id = "";
33 std::string name = "";
34 std::string status = "";
35 std::string host = "";
36 std::string user = "";
37 std::string ssh_options = "";
38};
39
40struct Cluster
41{
42 std::string name = "";
43 std::string user = "";
44 std::string nameSpace = "";
45 std::string nsNode = "";
46 std::string ssh_options = "";
47 std::vector<ClusterNode> nodes;
48};
49
54
55public:
56 XmlClusterLoader(std::string szFileName);
58 bool parseXmlFile(Cluster& _cluster);
59
60protected:
61
62private:
63 std::string confFile;
64 Cluster cluster;
65};
66
67} // namespace yarp::manager
68
69
70#endif // YARP_MANAGER_XMLCLUSTERLOADER_H
bool parseXmlFile(Cluster &_cluster)
std::vector< ClusterNode > nodes