Essentia
2.1-beta6-dev
|
#include <diskwriter.h>
Public Member Functions | |
DiskWriter (const std::string &filename) | |
~DiskWriter () | |
void | declareParameters () |
AlgorithmStatus | process () |
![]() | |
Algorithm () | |
virtual | ~Algorithm () |
SinkBase & | input (const std::string &name) |
SourceBase & | output (const std::string &name) |
SinkBase & | input (int idx) |
SourceBase & | output (int idx) |
const InputMap & | inputs () const |
const OutputMap & | outputs () const |
std::vector< std::string > | inputNames () const |
std::vector< std::string > | outputNames () const |
virtual void | shouldStop (bool stop) |
virtual bool | shouldStop () const |
void | disconnectAll () |
AlgorithmStatus | acquireData () |
void | releaseData () |
virtual void | reset () |
![]() | |
virtual | ~Configurable () |
const std::string & | name () const |
void | setName (const std::string &name) |
virtual void | setParameters (const ParameterMap ¶ms) |
virtual void | configure (const ParameterMap ¶ms) |
virtual void | configure () |
const ParameterMap & | defaultParameters () const |
const Parameter & | parameter (const std::string &key) const |
Protected Attributes | |
Sink< T > | _data |
std::string | _filename |
std::ostream * | _out |
![]() | |
bool | _shouldStop |
OutputMap | _outputs |
InputMap | _inputs |
int | nProcess |
![]() | |
std::string | _name |
ParameterMap | _params |
ParameterMap | _defaultParams |
Additional Inherited Members | |
![]() | |
typedef OrderedMap< SinkBase > | InputMap |
typedef OrderedMap< SourceBase > | OutputMap |
![]() | |
DescriptionMap | inputDescription |
DescriptionMap | outputDescription |
![]() | |
DescriptionMap | parameterDescription |
DescriptionMap | parameterRange |
![]() | |
static const std::string | processingMode |
![]() | |
void | declareInput (SinkBase &sink, const std::string &name, const std::string &desc) |
void | declareInput (SinkBase &sink, int n, const std::string &name, const std::string &desc) |
void | declareInput (SinkBase &sink, int acquireSize, int releaseSize, const std::string &name, const std::string &desc) |
void | declareOutput (SourceBase &source, const std::string &name, const std::string &desc) |
void | declareOutput (SourceBase &source, int n, const std::string &name, const std::string &desc) |
void | declareOutput (SourceBase &source, int acquireSize, int releaseSize, const std::string &name, const std::string &desc) |
![]() | |
void | declareParameter (const std::string &name, const std::string &desc, const std::string &range, const Parameter &defaultValue) |
|
inline |
|
inline |
References DiskWriter< T >::_out.
|
inlinevirtual |
Declare the parameters that this Configurable
can accept. You have to implement this method in derived classes, even though you don't need any parameters. In that case, just define it as empty.
In this method you should only be calling the declareParameter
method, once for each parameter, with optional default values.
Implements Configurable.
|
inlinevirtual |
Implements Algorithm.
References DiskWriter< T >::_data, DiskWriter< T >::_out, Algorithm::acquireData(), EXEC_DEBUG, Sink< TokenType >::firstToken(), essentia::streaming::OK, and Algorithm::releaseData().
|
protected |
Referenced by DiskWriter< T >::DiskWriter(), and DiskWriter< T >::process().
|
protected |
Referenced by DiskWriter< T >::DiskWriter().
|
protected |
Referenced by DiskWriter< T >::DiskWriter(), DiskWriter< T >::process(), and DiskWriter< T >::~DiskWriter().