Atoms Crowd  7.0.0
AtomsPlugin.h
1 #pragma once
2 
3 #include <Atoms/Globals.h>
4 #include <string>
5 
6 namespace Atoms
7 {
8  /* Atoms plugin
9  * It handles a dynamic library used to extend the functionality of atoms at run time.
10  */
11  class ATOMS_EXPORT AtomsPlugin
12  {
13  public:
14 
17 
20 
22  void setFilePath(const std::string& filePath);
23 
25  bool load();
26 
28  bool unload();
29 
31  bool isLoaded();
32 
34  bool loadScene();
35 
37  bool unloadScene();
38 
39  private:
40 
42  std::string m_filePath;
43 
45  void *m_libHandle;
46 
48  bool m_isLoaded;
49  };
50 }
Definition: AtomsPlugin.h:12
bool load()
Load entry point of the plugin.
~AtomsPlugin()
Destructor.
AtomsPlugin()
Constructor.
bool unload()
Unload the plugin.
bool isLoaded()
Check if this plugin is loaded in memory.
bool loadScene()
Scene load entry point.
void setFilePath(const std::string &filePath)
Sets the plugin file path.
bool unloadScene()
Unload scene.
Atoms namespace.
Definition: Agent.h:29