Mercurial > archived > louis > epitech > zia-api
view include/IModule.hpp @ 46:dad671a5f028
Corrections de typos, d'orthograffe et de formulations.
author | David Pineau <dav.pineau@gmail.com> |
---|---|
date | Mon, 22 Mar 2010 17:39:10 +0100 |
parents | 1254fa6755a3 |
children | e16869cd9773 |
line wrap: on
line source
#ifndef __ZIA_API_IMODULE_HPP__ # define __ZIA_API_IMODULE_HPP__ # include <string> # include <vector> # include "http/ITransaction.hpp" # include "network/IEndPoint.hpp" # include "IConfig.hpp" /** * @mainpage StreamIt API Reference * * @section sec_about About * * This API is maintained by the StreamIt Team: more info at www.ziastream.it. * * From here you can browse the full reference on our API. */ namespace zia { namespace api { /** * @brief It provides basic methods to identify the module and load it. */ class IModule { public: virtual ~IModule(void) { } /** * @brief Get the module name. * * @return The module name. */ virtual const std::string & getName(void) const = 0; /** * @brief Get module version. * * @return The module version. */ virtual const std::string & getVersion(void) const = 0; /** * @brief Get the module's list of hooks. * * @return A vector of IHandler. * * @see IHandler */ virtual const std::vector<handler::IHandler *> & getHandlers(void) const = 0; /** * @brief Update module configuration. * * @param [in] conf The pointer on IConfig which holds the * configuration. * * @return True if the configuration was successfully loaded. False * otherwise and the module will be unloaded. * * @see IConfig */ virtual bool configure(IConfig* conf = NULL) = 0; }; extern "C" { /** * @brief Entry point of the module. * * @return The module instance. * * @see IModule */ IModule * ziaGetModuleInstance(void); } }; }; #endif /* ! __ZIA_API_IMODULE_HPP__ */