YARP
Yet Another Robot Platform
xmltemploader.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2006-2021 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_XMLTEMPLOADER
10 #define YARP_MANAGER_XMLTEMPLOADER
11 
12 #include <yarp/manager/ymm-types.h>
15 
16 namespace yarp {
17 namespace manager {
18 
19 
23 class XmlTempLoader : public TempLoader {
24 
25 public:
26  XmlTempLoader(const char* szFileName);
27  XmlTempLoader(const char* szPath, const char* szAppName);
28  ~XmlTempLoader() override;
29  bool init() override;
30  void fini() override;
31  void reset() override;
32  AppTemplate* getNextAppTemplate() override;
33 
34 protected:
35 
36 private:
37  std::string strAppName;
38  std::string strPath;
39  std::string strFileName;
40  std::vector<std::string> fileNames;
41  TextParser parser;
42  AppTemplate app;
43  AppTemplate* parsXml(const char* szFile);
44 };
45 
46 } // namespace yarp
47 } // namespace manager
48 
49 
50 #endif // __YARP_MANAGER_XMLTEMPLOADER__
Class XmlTempLoader.
Definition: xmltemploader.h:23
XmlTempLoader(const char *szFileName)
load only one application indicated by its xml file name
AppTemplate * getNextAppTemplate() override
The main, catch-all namespace for YARP.
Definition: environment.h:25
Abstract Class TempLoader.