Mercurial > hg > audiodb
view pointpair.cpp @ 503:3d17fdac096a
Makefile improvements from library/application separation.
Library object files don't need soap includes, and depend on a different
set of header files from the application object files.
Run the library tests with "make test"
author | mas01cr |
---|---|
date | Tue, 13 Jan 2009 21:26:21 +0000 |
parents | 342822c2d49a |
children | cc2b97d020b1 |
line wrap: on
line source
#include "audioDB.h" extern "C" { #include "audioDB_API.h" #include "audioDB-internals.h" } PointPair::PointPair(Uns32T a, Uns32T b, Uns32T c) : trackID(a), qpos(b), spos(c) { }; bool operator<(const PointPair& a, const PointPair& b) { return ((a.trackID < b.trackID) || ((a.trackID == b.trackID) && ((a.spos < b.spos) || ((a.spos == b.spos) && (a.qpos < b.qpos))))); } bool operator>(const PointPair& a, const PointPair& b) { return ((a.trackID > b.trackID) || ((a.trackID == b.trackID) && ((a.spos > b.spos) || ((a.spos == b.spos) && (a.qpos > b.qpos))))); } bool operator==(const PointPair& a, const PointPair& b) { return ((a.trackID == b.trackID) && (a.qpos == b.qpos) && (a.spos == b.spos)); }