view accumulator.h @ 460:17003dff8127 api-inversion

Convert index-finding logic to C functions. New audiodb_index_exists() and audiodb_index_get_name(). The behaviours of the functions are unchanged, even though they are kind of weird; in particular, passing in a buffer rather than returning a char * for audiodb_index_get_name() is probably likely to work better eventually (see the changes to soap.cpp, which show a clear leak of a buffer in the error case)
author mas01cr
date Tue, 30 Dec 2008 10:36:01 +0000
parents a7d61291fbda
children
line wrap: on
line source
#ifndef ACCUMULATOR_H
#define ACCUMULATOR_H

class Accumulator {
public:
  virtual ~Accumulator() {};
  virtual void add_point(adb_result_t *r) = 0;
  virtual adb_query_results_t *get_points() = 0;
};

#endif