YARP
Yet Another Robot Platform
xmlapploader.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_XMLAPPLOADER
7 #define YARP_MANAGER_XMLAPPLOADER
8 
11 
12 
13 
14 namespace yarp {
15 namespace manager {
16 class TextParser;
17 
21 class XmlAppLoader : public AppLoader {
22 
23 public:
24  XmlAppLoader(const char* szFileName);
25  XmlAppLoader(const char* szPath, const char* szAppName);
26  ~XmlAppLoader() override;
27 
28  bool init() override;
29  void fini() override;
30  void reset() override;
31  Application* getNextApplication() override;
32 
33 protected:
34 
35 private:
36  std::string strAppName;
37  std::string strPath;
38  std::string strFileName;
39  std::vector<std::string> fileNames;
40  Application app;
41  TextParser* parser;
42  Application* parsXml(const char* szFile);
43 };
44 
45 } // namespace yarp
46 } // namespace manager
47 
48 
49 #endif // __YARP_MANAGER_XMLAPPLOADER__
Abstract Class AppLoader.
Class Application.
Definition: application.h:289
Class XmlAppLoader.
Definition: xmlapploader.h:21
Application * getNextApplication() override
XmlAppLoader(const char *szFileName)
load only one application indicated by its xml file name
The main, catch-all namespace for YARP.
Definition: dirs.h:16