YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
xmlresloader.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_XMLRESLOADER
7#define YARP_MANAGER_XMLRESLOADER
8
13
14namespace yarp::manager {
15class TextParser;
16
21{
22public:
23 XmlResLoader(const char* szFileName);
24 XmlResLoader(const char* szPath, const char* szResName);
25 ~XmlResLoader() override;
26 bool init() override;
27 void reset() override;
28 void fini() 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 ComputerContainer computers;
40 Computer dummyComputer;
41 bool parsXml(const char* szFile);
42};
43
44} // namespace yarp::manager
45
46
47#endif // __YARP_MANAGER_XMLRESLOADER__
Abstract Class ResourceLoader.
Class XmlResLoader.
GenericResource * getNextResource() override
std::vector< Computer > ComputerContainer