Mercurial > hg > audiodb
view accumulator.h @ 441:1a1ea05a94ce api-inversion
clarify audiodb_insert()
write audiodb_insert() (essentially to support the command-line client
audioDB::insert operation) in terms of audiodb_insert_datum() and a new
audiodb_insert_reference() function. These two functions each do
exactly one thing and return failure if they're working on the wrong
kind of database.
author | mas01cr |
---|---|
date | Wed, 24 Dec 2008 10:56:25 +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