This repository has been archived on 2024-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
pacciani/ModuleRegistry.hpp

30 lines
526 B
C++
Raw Normal View History

#ifndef MODULE_REGISTRY_HPP
#define MODULE_REGISTRY_HPP
#include "Pointers.hpp"
namespace monicelli {
class FunctionPrototype;
class ModuleRegistry {
public:
ModuleRegistry();
ModuleRegistry(ModuleRegistry&) = delete;
virtual ~ModuleRegistry();
PointerList<FunctionPrototype> const& getRegisteredFunctions() const;
void registerFunction(FunctionPrototype *proto);
private:
struct Private;
Private *d;
};
ModuleRegistry& getModuleRegistry();
void registerStdLib(ModuleRegistry &);
}
#endif