26 #include "boost/filesystem/path.hpp" 34 namespace bfs = boost::filesystem;
42 std::ifstream is(filename.c_str());
43 if (!is)
throw runtime_error((
"Unable to open file " + filename).c_str());
54 if (
os_) *
os_ <<
"testGaussian_Bombesin2()\n";
57 if (
os_) *
os_ <<
"before:\n" << bombesin2;
63 if (
os_) *
os_ <<
"after:\n" << result << endl;
69 if (
os_) *
os_ <<
"testGaussian_Bombesin3()\n";
72 if (
os_) *
os_ <<
"before:\n" << bombesin3;
78 if (
os_) *
os_ <<
"after:\n" << result << endl;
84 if (
os_) *
os_ <<
"testMulti()\n";
92 if (
os_) *
os_ << result << endl;
97 void test(
const bfs::path& datadir)
106 ff.insert(bombesin2);
107 ff.insert(bombesin3);
112 int main(
int argc,
char* argv[])
118 bfs::path datadir =
".";
120 for (
int i=1; i<argc; i++)
122 if (!strcmp(argv[i],
"-v"))
128 datadir = bfs::path(argv[i]).branch_path();
MZRTField is a std::set of boost::shared_ptrs, stored as a binary tree ordered by LessThan_MZRT...
std::vector< PeakelPtr > peakels
virtual void fitFeature(const Feature &in, Feature &out) const
void testGaussian_Bombesin3(const Feature &bombesin3)
virtual void fitFeatures(const FeatureField &in, FeatureField &out) const
boost::shared_ptr< Feature > FeaturePtr
void test(const bfs::path &datadir)
#define TEST_PROLOG(argc, argv)
FeaturePtr getFeature(const string &filename)
int main(int argc, char *argv[])
void testGaussian_Bombesin2(const Feature &bombesin2)
void testMulti(const FeatureField &ff)