YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
xmlmodloader.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_XMLMODLOADER
7#define YARP_MANAGER_XMLMODLOADER
8
10#include <yarp/manager/module.h>
11#include <yarp/manager/data.h>
13
14namespace yarp::manager {
15
16class TextParser;
20class XmlModLoader : public ModuleLoader {
21
22public:
23 XmlModLoader(const char* szFileName);
24 XmlModLoader(const char* szPath, const char* szModuleName);
25 ~XmlModLoader() override;
26 bool init() override;
27 void reset() override;
28 void fini() override;
29 Module* getNextModule() override;
30
31protected:
32
33private:
34 std::string strName;
35 std::string strPath;
36 std::string strFileName;
37 std::vector<std::string> fileNames;
38 TextParser* parser;
39 Module module;
40 Module* parsXml(const char* szFile);
41};
42
43} // namespace yarp::manager
44
45
46#endif // __YARP_MANAGER_XMLMODLOADER__
Abstract Class ModuleLoader.
Class Module.
Definition module.h:99
Class XmlModLoader.
Module * getNextModule() override