1 #ifndef __NUMBER_OF_PEAKS_H__
2 #define __NUMBER_OF_PEAKS_H__
8 #include "boost/type_traits/remove_cv.hpp"
9 #include "boost/variant/get.hpp"
10 #include "boost/variant/variant.hpp"
11 #include "boost/smart_ptr.hpp"
23 static const std::string
name;
26 if (args.size() != 1) {
28 "numberOfPeaks expects 1 arguments, " + std::to_string(args.size()) +
" given");
36 std::size_t nPeaks = 0;
39 sim_peaks->parseFile();
40 nPeaks = sim_peaks->getNumberOfPeaks();
47 return boost::make_tuple(nPeaks, is_valid);
virtual const char * what() const
static const std::string name
boost::tuple< double, bool > Result_t
std::vector< argument_t > arguments_t
Implements a parser and value extractor for peak files (*.peaks)
std::string sim_filename_
Expressions::Result_t operator()(client::function::arguments_t args)
boost::tuple< std::string > argument_types
Inform & endl(Inform &inf)