Mercurial > hg > audiodb
comparison accumulator_test.cpp @ 421:166312a124bc api-inversion
Code spaghettification continues.
Include accumulator.h in audioDB.h. This means we also need
audioDB_API.h in there, to get the definition of adb_result_t. Use
preprocessor defines to prevent audioDB_API.h from being included
multiple times.
Include an accumulator field in class audioDB.
author | mas01cr |
---|---|
date | Wed, 24 Dec 2008 10:54:59 +0000 |
parents | 580f696c817c |
children |
comparison
equal
deleted
inserted
replaced
420:580f696c817c | 421:166312a124bc |
---|---|
1 #include "audioDB.h" | |
2 extern "C" { | |
3 #include "audioDB_API.h" | |
4 } | |
5 #include "audioDB-internals.h" | |
6 | |
1 #include "accumulators.h" | 7 #include "accumulators.h" |
2 | 8 |
3 static NearestAccumulator<adb_result_dist_lt> *foo = new NearestAccumulator<adb_result_dist_lt>(); | 9 static NearestAccumulator<adb_result_dist_lt> *foo = new NearestAccumulator<adb_result_dist_lt>(); |
4 | 10 |
5 int main() { | 11 int main() { |