YARP
Yet Another Robot Platform
manifestloader.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_MANIFESTLOADER
10 #define YARP_MANAGER_MANIFESTLOADER
11 
12 #include <yarp/manager/ymm-types.h>
13 #include <yarp/manager/module.h>
15 #include <yarp/manager/resource.h>
16 
17 namespace yarp {
18 namespace manager {
19 
20 
24 class AppLoader {
25 
26 public:
27  AppLoader() = default;
28  virtual ~AppLoader() = default;
29  virtual bool init() = 0;
30  virtual void fini() = 0;
31  virtual void reset() = 0;
33 
34 protected:
35 
36 private:
37 
38 };
39 
40 class AppSaver
41 {
42 public:
43  AppSaver() = default;
44  virtual ~AppSaver() = default;
45  virtual bool save(Application* application) = 0;
46 
47 protected:
48 
49 private:
50 };
51 
52 
53 
57 class ModuleLoader {
58 
59 public:
60  ModuleLoader() = default;
61  virtual ~ModuleLoader() = default;
62  virtual bool init() = 0;
63  virtual void reset() = 0;
64  virtual void fini() = 0;
65  virtual Module* getNextModule() = 0;
66 
67 protected:
68 
69 private:
70 
71 };
72 
73 
78 
79 public:
80  ResourceLoader() = default;
81  virtual ~ResourceLoader() = default;
82  virtual bool init() = 0;
83  virtual void reset() = 0;
84  virtual void fini() = 0;
86 
87 protected:
88 
89 private:
90 
91 };
92 
93 
98 struct AppTemplate {
99  std::string name;
100  std::string tmpFileName;
101 };
102 
103 
104 class TempLoader {
105 public:
106  TempLoader() = default;
107  virtual ~TempLoader() = default;
108  virtual bool init() = 0;
109  virtual void fini() = 0;
110  virtual void reset() = 0;
112 
113 protected:
114 
115 private:
116 
117 };
118 
119 } // namespace yarp
120 } // namespace manager
121 
122 
123 #endif // __YARP_MANAGER_MANIFESTLOADER__
yarp::manager::Application
Class Application.
Definition: application.h:292
yarp::manager::ResourceLoader::fini
virtual void fini()=0
yarp::manager::TempLoader::~TempLoader
virtual ~TempLoader()=default
yarp::manager::AppTemplate::tmpFileName
std::string tmpFileName
Definition: manifestloader.h:100
yarp::manager::TempLoader
Definition: manifestloader.h:104
yarp::manager::AppSaver
Definition: manifestloader.h:41
yarp::manager::AppLoader::AppLoader
AppLoader()=default
yarp::manager::AppTemplate
Abstract Class TempLoader.
Definition: manifestloader.h:98
yarp::manager::ResourceLoader::~ResourceLoader
virtual ~ResourceLoader()=default
yarp::manager::TempLoader::init
virtual bool init()=0
yarp::manager::ResourceLoader::ResourceLoader
ResourceLoader()=default
module.h
yarp::manager::AppLoader::fini
virtual void fini()=0
yarp::manager::AppLoader::~AppLoader
virtual ~AppLoader()=default
yarp::manager::AppTemplate::name
std::string name
Definition: manifestloader.h:99
yarp::manager::ModuleLoader::ModuleLoader
ModuleLoader()=default
yarp::manager::ModuleLoader::getNextModule
virtual Module * getNextModule()=0
yarp::manager::ResourceLoader
Abstract Class ResourceLoader.
Definition: manifestloader.h:77
yarp::manager::ResourceLoader::getNextResource
virtual GenericResource * getNextResource()=0
yarp::manager::TempLoader::reset
virtual void reset()=0
yarp::manager::TempLoader::TempLoader
TempLoader()=default
yarp::manager::Module
Class Module.
Definition: module.h:103
yarp::manager::ModuleLoader::reset
virtual void reset()=0
yarp::manager::AppLoader::init
virtual bool init()=0
yarp::manager::AppSaver::save
virtual bool save(Application *application)=0
resource.h
yarp::manager::ModuleLoader::init
virtual bool init()=0
yarp::manager::AppSaver::~AppSaver
virtual ~AppSaver()=default
ymm-types.h
yarp::manager::AppLoader::reset
virtual void reset()=0
yarp::manager::ModuleLoader::~ModuleLoader
virtual ~ModuleLoader()=default
yarp::manager::ModuleLoader::fini
virtual void fini()=0
yarp::manager::AppSaver::AppSaver
AppSaver()=default
yarp::manager::TempLoader::fini
virtual void fini()=0
yarp::manager::ResourceLoader::reset
virtual void reset()=0
yarp::manager::ModuleLoader
Abstract Class ModuleLoader.
Definition: manifestloader.h:57
yarp::manager::AppLoader::getNextApplication
virtual Application * getNextApplication()=0
yarp::manager::GenericResource
Definition: resource.h:21
yarp
The main, catch-all namespace for YARP.
Definition: environment.h:18
yarp::manager::TempLoader::getNextAppTemplate
virtual AppTemplate * getNextAppTemplate()=0
yarp::manager::AppLoader
Abstract Class AppLoader.
Definition: manifestloader.h:24
yarp::manager::ResourceLoader::init
virtual bool init()=0
application.h