Logo Search packages:      
Sourcecode: narval version File versions  Download package

my_class.cc

#include <iostream>
#include "my_class.h"

my_class::my_class ()
{
}

void my_class::process_config (char *directory_path,
                         unsigned int *error_code)
{
  std::cout << "call to process_config" << std::endl;
  std::cout << "directory path =" << directory_path << std::endl;
  *error_code = 0;
}

void my_class::process_block (void *input_buffer,
                        unsigned int size_of_input_buffer,
                        void *output_buffer,
                        unsigned int size_of_output_buffer,
                        unsigned int *used_size_of_output_buffer,
                        unsigned int *error_code)
{
  unsigned int size_of_output_buffer_in_32_bits_word;
  unsigned int *data_in,*data_out;
  unsigned int i;

  size_of_output_buffer_in_32_bits_word = size_of_input_buffer / 4;
  data_in = (unsigned int *) input_buffer;
  data_out = (unsigned int *) output_buffer;
  data_out [0] = data_in [0] * 10;
  for (i=1;i<size_of_output_buffer_in_32_bits_word;i++)
    {
      data_out [i] = data_in [i];
    }
  *error_code = 0;
  *used_size_of_output_buffer = size_of_output_buffer_in_32_bits_word * 4;
}

Generated by  Doxygen 1.6.0   Back to index