Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Institute of Technical Acoustics (ITA)
ITASimulationScheduler
Commits
c2dbc366
Commit
c2dbc366
authored
Jun 09, 2020
by
Pascal Palenda
Browse files
Formating - WIP
parent
fa5a2475
Changes
1
Hide whitespace changes
Inline
Side-by-side
include/ITA/simulation_scheduler/audibility_filter/audibility_filter_interface.h
View file @
c2dbc366
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment