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

my_class.cc

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

my_class::my_class ()
{
  some_algo_dependent_data = 0;
}

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 *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;
  unsigned int i;

  size_of_output_buffer_in_32_bits_word = size_of_output_buffer / 4;
  data = (unsigned int *) output_buffer;
  data [0] = some_algo_dependent_data;
  for (i=1;i<size_of_output_buffer_in_32_bits_word;i++)
    {
      data [i] = i;
    }
  some_algo_dependent_data++;
  *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