YARP
Yet Another Robot Platform
xmlmodloader.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_XMLMODLOADER
10
#define YARP_MANAGER_XMLMODLOADER
11
12
#include <
yarp/manager/ymm-types.h
>
13
#include <
yarp/manager/module.h
>
14
#include <
yarp/manager/data.h
>
15
#include <
yarp/manager/manifestloader.h
>
16
17
namespace
yarp
{
18
namespace
manager {
19
20
class
TextParser;
24
class
XmlModLoader
:
public
ModuleLoader
{
25
26
public
:
27
XmlModLoader
(
const
char
* szFileName);
28
XmlModLoader
(
const
char
* szPath,
const
char
* szModuleName);
29
~XmlModLoader
()
override
;
30
bool
init
()
override
;
31
void
reset
()
override
;
32
void
fini
()
override
;
33
Module
*
getNextModule
()
override
;
34
35
protected
:
36
37
private
:
38
std::string strName;
39
std::string strPath;
40
std::string strFileName;
41
std::vector<std::string> fileNames;
42
TextParser
* parser;
43
Module
module;
44
Module
* parsXml(
const
char
* szFile);
45
};
46
47
}
// namespace yarp
48
}
// namespace manager
49
50
51
#endif // __YARP_MANAGER_XMLMODLOADER__
yarp::manager::XmlModLoader::XmlModLoader
XmlModLoader(const char *szFileName)
load only one module indicated by its xml file name
Definition:
xmlmodloader.cpp:51
module.h
yarp::manager::Module
Class Module.
Definition:
module.h:103
yarp::manager::TextParser
Definition:
textparser.h:24
yarp::manager::XmlModLoader::fini
void fini() override
Definition:
xmlmodloader.cpp:134
yarp::manager::XmlModLoader::init
bool init() override
Definition:
xmlmodloader.cpp:70
manifestloader.h
ymm-types.h
yarp::manager::ModuleLoader
Abstract Class ModuleLoader.
Definition:
manifestloader.h:57
yarp::manager::XmlModLoader
Class XmlModLoader.
Definition:
xmlmodloader.h:24
yarp::manager::XmlModLoader::getNextModule
Module * getNextModule() override
Definition:
xmlmodloader.cpp:141
yarp::manager::XmlModLoader::reset
void reset() override
Definition:
xmlmodloader.cpp:127
data.h
yarp
The main, catch-all namespace for YARP.
Definition:
environment.h:18
yarp::manager::XmlModLoader::~XmlModLoader
~XmlModLoader() override
Definition:
xmlmodloader.cpp:61
YARP
3.4.100+20201223.2+gitb8ea4d712
src
libYARP_manager
src
yarp
manager
xmlmodloader.h
Generated on Sun Jan 3 2021 02:46:24 for YARP by
1.8.20