ns-3 Direct Code Execution
API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
loader-factory.h
Go to the documentation of this file.
1 #ifndef LOADER_FACTORY_H
2 #define LOADER_FACTORY_H
3 
4 #include "ns3/object.h"
5 #include "ns3/simple-ref-count.h"
6 
7 namespace ns3 {
8 
9 class Loader
10 {
11 public:
12  virtual ~Loader () = 0;
13  virtual void NotifyStartExecute (void);
14  virtual void NotifyEndExecute (void);
15  virtual Loader * Clone (void) = 0;
16  virtual void UnloadAll (void) = 0;
17  virtual void * Load (std::string filename, int flag) = 0;
18  virtual void Unload (void *module) = 0;
19  virtual void * Lookup (void *module, std::string symbol) = 0;
20 };
21 
22 class LoaderFactory : public Object
23 {
24 public:
25  static TypeId GetTypeId (void);
26  virtual ~LoaderFactory () = 0;
27  virtual Loader * Create (int argc, char **argv, char **envp) = 0;
28 };
29 
30 } // namespace ns3
31 
32 #endif /* LOADER_FACTORY_H */