YARP
Yet Another Robot Platform
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 
13 
14 namespace yarp {
15 namespace manager {
16 
18 {
19  std::string name = "";
20  std::string address = "";
21  bool display = false;
22  std::string displayValue = "none";
23  std::string user = "";
24  std::string ssh_options = "";
25  bool onOff = false;
26  bool log = true;
27 };
28 
29 struct Cluster
30 {
31  std::string name = "";
32  std::string user = "";
33  std::string nameSpace = "";
34  std::string nsNode = "";
35  std::string ssh_options = "";
36  std::vector<ClusterNode> nodes;
37 };
38 
43 
44 public:
45  XmlClusterLoader(std::string szFileName);
46  virtual ~XmlClusterLoader();
47  bool parseXmlFile(Cluster& _cluster);
48 
49 protected:
50 
51 private:
52  std::string confFile;
53  Cluster cluster;
54 };
55 
56 } // namespace manager
57 } // namespace yarp
58 
59 
60 #endif // YARP_MANAGER_XMLCLUSTERLOADER_H
Class XmlClusterLoader.
XmlClusterLoader(std::string szFileName)
load only one application indicated by its xml file name
bool parseXmlFile(Cluster &_cluster)
The main, catch-all namespace for YARP.
Definition: dirs.h:16
std::vector< ClusterNode > nodes