Commit c2dbc366 authored by Pascal Palenda's avatar Pascal Palenda
Browse files

Formating - WIP

parent fa5a2475
......@@ -35,7 +35,7 @@ namespace ITA
/// static std::unique_ptr<IAudibilityFilter> createFilter ( const IAudibilityFilter::AudibilityFilterConfig& );
/// \endcode
///
class ITA_SIMULATION_SCHEDULER_API IAudibilityFilter
class ITA_SIMULATION_SCHEDULER_API IAudibilityFilter
{
public:
///
......@@ -80,39 +80,39 @@ namespace ITA
///
/// This class implements an extensible factory for filter.
/// After a type of filter is registered with its IAudibilityFilter::createFilter, it can be created using this factory.
///
///
class ITA_SIMULATION_SCHEDULER_API CAudibilityFilterFactory
{
public:
///
/// \brief The function signature for a create function.
///
/// \brief The function signature for a create function.
///
typedef std::function<std::unique_ptr<IAudibilityFilter> ( const IAudibilityFilter::AudibilityFilterConfig& )> CreateCallback;
///
/// \brief Register a type of filter to the factory.
/// \param type name of the filter type to be registered.
/// \param createFunction the corresponding create function.
///
///
static void registerFilter ( const std::string& type, CreateCallback createFunction );
///
/// \brief Unregister a type of filter from the factory.
/// \param type name of the filter type to be removed.
///
///
static void unregisterFilter ( const std::string& type );
///
/// \brief Factory method.
/// \param pConfig the configuration for the filter.
/// \return a pointer to the created filter.
///
///
static std::unique_ptr<IAudibilityFilter> createFilter ( const IAudibilityFilter::AudibilityFilterConfig& pConfig );
private:
private:
///
/// \brief Map containing all creation functions.
///
///
static std::map<std::string, CreateCallback> m_mFilters;
};
} // namespace audibility_filter
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment