YARP
Yet Another Robot Platform
xmlclusterloader.h
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2006-2020 Istituto Italiano di Tecnologia (IIT)
3
* All rights reserved.
4
*
5
* This software may be modified and distributed under the terms of the
6
* BSD-3-Clause license. See the accompanying LICENSE file for details.
7
*/
8
9
#ifndef YARP_MANAGER_XMLCLUSTERLOADER_H
10
#define YARP_MANAGER_XMLCLUSTERLOADER_H
11
12
#include <
yarp/manager/ymm-types.h
>
13
#include <
yarp/manager/manifestloader.h
>
14
15
16
17
namespace
yarp
{
18
namespace
manager {
19
20
struct
ClusterNode
21
{
22
std::string
name
=
""
;
23
std::string
address
=
""
;
24
bool
display
=
false
;
25
std::string
displayValue
=
"none"
;
26
std::string
user
=
""
;
27
std::string
ssh_options
=
""
;
28
bool
onOff
=
false
;
29
bool
log
=
true
;
30
};
31
32
struct
Cluster
33
{
34
std::string
name
=
""
;
35
std::string
user
=
""
;
36
std::string
nameSpace
=
""
;
37
std::string
nsNode
=
""
;
38
std::string
ssh_options
=
""
;
39
std::vector<ClusterNode>
nodes
;
40
};
41
45
class
XmlClusterLoader
{
46
47
public
:
48
XmlClusterLoader
(std::string szFileName);
49
virtual
~XmlClusterLoader
();
50
bool
parseXmlFile
(
Cluster
& _cluster);
51
52
protected
:
53
54
private
:
55
std::string confFile;
56
Cluster
cluster;
57
};
58
59
}
// namespace manager
60
}
// namespace yarp
61
62
63
#endif // YARP_MANAGER_XMLCLUSTERLOADER_H
yarp::manager::ClusterNode::onOff
bool onOff
Definition:
xmlclusterloader.h:28
yarp::manager::ClusterNode::ssh_options
std::string ssh_options
Definition:
xmlclusterloader.h:27
yarp::manager::ClusterNode::name
std::string name
Definition:
xmlclusterloader.h:22
yarp::manager::Cluster::nameSpace
std::string nameSpace
Definition:
xmlclusterloader.h:36
yarp::manager::ClusterNode::log
bool log
Definition:
xmlclusterloader.h:29
yarp::manager::ClusterNode::address
std::string address
Definition:
xmlclusterloader.h:23
yarp::manager::Cluster::nodes
std::vector< ClusterNode > nodes
Definition:
xmlclusterloader.h:39
yarp::manager::Cluster
Definition:
xmlclusterloader.h:33
manifestloader.h
ymm-types.h
yarp::manager::Cluster::nsNode
std::string nsNode
Definition:
xmlclusterloader.h:37
yarp::manager::XmlClusterLoader::XmlClusterLoader
XmlClusterLoader(std::string szFileName)
load only one application indicated by its xml file name
Definition:
xmlclusterloader.cpp:30
yarp::manager::XmlClusterLoader::parseXmlFile
bool parseXmlFile(Cluster &_cluster)
Definition:
xmlclusterloader.cpp:37
yarp::manager::ClusterNode::displayValue
std::string displayValue
Definition:
xmlclusterloader.h:25
yarp::manager::Cluster::name
std::string name
Definition:
xmlclusterloader.h:34
yarp::manager::XmlClusterLoader::~XmlClusterLoader
virtual ~XmlClusterLoader()
yarp::manager::ClusterNode
Definition:
xmlclusterloader.h:21
yarp::manager::ClusterNode::user
std::string user
Definition:
xmlclusterloader.h:26
yarp
The main, catch-all namespace for YARP.
Definition:
environment.h:18
yarp::manager::ClusterNode::display
bool display
Definition:
xmlclusterloader.h:24
yarp::manager::XmlClusterLoader
Class XmlClusterLoader.
Definition:
xmlclusterloader.h:45
yarp::manager::Cluster::ssh_options
std::string ssh_options
Definition:
xmlclusterloader.h:38
yarp::manager::Cluster::user
std::string user
Definition:
xmlclusterloader.h:35
YARP
3.4.100+20201223.2+gitb8ea4d712
src
libYARP_manager
src
yarp
manager
xmlclusterloader.h
Generated on Sun Jan 3 2021 02:46:24 for YARP by
1.8.20