Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F75834998
filter_interface.hh
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sun, Aug 4, 14:21
Size
3 KB
Mime Type
text/x-c++
Expires
Tue, Aug 6, 14:21 (2 d)
Engine
blob
Format
Raw Data
Handle
19616263
Attached To
rLIBMULTISCALE LibMultiScale
filter_interface.hh
View Options
/**
* @file filter_interface.hh
*
*
* @date Mon Oct 28 19:23:14 2013
*
* @brief This is the interface to all filters
*
* @section LICENSE
*
* Copyright (©) 2010-2011 EPFL (Ecole Polytechnique Fédérale de Lausanne)
* Laboratory (LSMS - Laboratoire de Simulation en Mécanique des Solides)
*
* LibMultiScale is free software: you can redistribute it and/or modify it under the
* terms of the GNU Lesser General Public License as published by the Free
* Software Foundation, either version 3 of the License, or (at your option) any
* later version.
*
* LibMultiScale is distributed in the hope that it will be useful, but WITHOUT ANY
* WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
* A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
* details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with LibMultiScale. If not, see <http://www.gnu.org/licenses/>.
*
*/
#ifndef __LIBMULTISCALE_FILTER_INTERFACE_HH__
#define __LIBMULTISCALE_FILTER_INTERFACE_HH__
/* -------------------------------------------------------------------------- */
#include "action_interface.hh"
#include "component_libmultiscale.hh"
/* -------------------------------------------------------------------------- */
__BEGIN_LIBMULTISCALE__
/* -------------------------------------------------------------------------- */
class
FilterManager
;
class
ActionManager
;
/* -------------------------------------------------------------------------- */
class
FilterInterface
:
public
ActionInterface
,
public
virtual
ComponentLMInterface
{
/* ------------------------------------------------------------------------ */
/* Constructors/Destructors */
/* ------------------------------------------------------------------------ */
public
:
FilterInterface
(
const
std
::
string
&
name
=
""
)
:
ActionInterface
(
name
){};
virtual
~
FilterInterface
(){};
/* ------------------------------------------------------------------------ */
/* Methods */
/* ------------------------------------------------------------------------ */
public
:
template
<
typename
ContInput
>
static
FilterInterface
*
buildFilter
(
ContInput
&
cInput
);
//! function to print the contain of the class
virtual
void
printself
(
std
::
ostream
&
stream
,
int
indent
=
0
)
const
{
}
//! connect and build the adapted object
virtual
void
connect
(
FilterManager
&
f
){
LM_TOIMPLEMENT
;};
//! connect and build the adapted object
virtual
void
connect
(
ActionManager
&
f
){
LM_TOIMPLEMENT
;};
/* ------------------------------------------------------------------------ */
/* Accessors */
/* ------------------------------------------------------------------------ */
public
:
/* ------------------------------------------------------------------------ */
/* Class Members */
/* ------------------------------------------------------------------------ */
protected
:
};
/* -------------------------------------------------------------------------- */
/// standard output stream operator
inline
std
::
ostream
&
operator
<<
(
std
::
ostream
&
stream
,
const
FilterInterface
&
_this
)
{
_this
.
printself
(
stream
);
return
stream
;
}
__END_LIBMULTISCALE__
/* -------------------------------------------------------------------------- */
#include "filter_list.hh"
#include "compute_ref_input_list.hh"
#include "compute_real_input_list.hh"
#include "compute_ref_output_list.hh"
/* -------------------------------------------------------------------------- */
#define LIST_COMPUTE \
LIST_COMPUTE_REF_INPUT LIST_COMPUTE_REAL_INPUT
/* -------------------------------------------------------------------------- */
#endif
/* __LIBMULTISCALE_FILTER_INTERFACE_HH__ */
Event Timeline
Log In to Comment