44 void outputWhat( std::ostream& o )
const { o <<
"Wrong number of arguments"; }
47 int main(
int argc,
char** ppArgv )
56 std::string initialAdjustmentParameterString( ppArgv[ 1 ] );
57 std::istringstream initialAdjustmentParameterIstream( initialAdjustmentParameterString );
59 std::string targetBitratesString( ppArgv[ 2 ] );
60 std::istringstream targetBitratesIstream( targetBitratesString );
62 guessLambdaModifiers( std::cout, initialAdjustmentParameterIstream, targetBitratesIstream, std::cin );
66 catch( std::exception& e )
68 std::cerr << e.what( ) << std::endl;
72 std::cerr <<
"Unknown exception" << std::endl;
void outputWhat(std::ostream &o) const
virtual ~WrongNumberOfArgumentsException()
std::vector< double > guessLambdaModifiers(double initialAdjustmentParameter, const std::vector< double > &targetBitrateVector, const std::list< MetaLogEntry< std::vector< double > > > &metaLogEntryList)
int main(int argc, char *argv[])
This class serves the same purpose as std::runtime_error, but it can be more convenient to use...