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 bool onOff = false;
24 bool log = true;
25};
26
27struct Cluster
28{
29 std::string name = "";
30 std::string user = "";
31 std::string nameSpace = "";
32 std::string nsNode = "";
33 std::string ssh_options = "";
34 std::vector<ClusterNode> nodes;
35};
36
41
42public:
43 XmlClusterLoader(std::string szFileName);
45 bool parseXmlFile(Cluster& _cluster);
46
47protected:
48
49private:
50 std::string confFile;
51 Cluster cluster;
52};
53
54} // namespace yarp::manager
55
56
57#endif // YARP_MANAGER_XMLCLUSTERLOADER_H
bool parseXmlFile(Cluster &_cluster)
std::vector< ClusterNode > nodes