libAGAPRO_TSFilter.cpp 1.85 KB
Newer Older
Jérémie Dudouet's avatar
Jérémie Dudouet committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61
#include "AGAPRO_TSFilter.h"

using namespace AGAPRO;

extern "C" {
  TSFilter *process_register(UInt_t *error_code)
  {
    if( (TSFilter::gActualClass.size() == 0) ||
        (TSFilter::gActualClass == "basic") ||
        (TSFilter::gActualClass == "TSFilter") ) {
      std::cout << "\nTSFilter::gActualClass == \"TSFilter base class\"\n";
      return new TSFilter();
    }
    else {
      std::cout << "\nERROR : TSFilter::gActualClass " << TSFilter::gActualClass << " not recognised\n";
      return NULL;
    }
  }
  void process_config(const char *directory_path, UInt_t *error_code)
  {
    TSFilter::process_config (directory_path, error_code);
  }
  void process_block( TSFilter *algo_data,
                      void *input_buffer,
                      UInt_t size_of_input_buffer,
                      void *output_buffer,
                      UInt_t size_of_output_buffer,
                      UInt_t *used_size_of_output_buffer,
                      UInt_t *error_code)
  {
    algo_data->process_block(
                      input_buffer,  size_of_input_buffer,
                      output_buffer, size_of_output_buffer,
                      used_size_of_output_buffer, error_code);
  }
  void process_initialise(TSFilter *algo_data, UInt_t *error_code)
  {
    algo_data->process_initialise (error_code);
  }
  void process_reset(TSFilter *algo_data,UInt_t *error_code)
  {
    algo_data->process_reset(error_code);
  }
  void process_start(TSFilter *algo_data, UInt_t *error_code)
  {
    algo_data->process_start(error_code);
  }
  void process_stop(TSFilter *algo_data,UInt_t *error_code)
  {
    algo_data->process_stop(error_code);
  }
  void process_pause(TSFilter *algo_data,UInt_t *error_code)
  {
    algo_data->process_pause (error_code);
  }
  void process_resume(TSFilter *algo_data, UInt_t *error_code)
  {
    algo_data->process_resume (error_code);
  }
};