+#include <boost/assert.hpp>
+
#include "configuration.h"
using namespace std;
void Configuration::set_config_file_name( std::string config_file_name )
{
+ BOOST_ASSERT( !config_file_name.empty() );
+
this->config_file_name = config_file_name;
}
void Configuration::set_limit_to_notify( uint32_t limit_to_notify )
{
+ BOOST_ASSERT( ( MIN_LIMIT_TO_NOTIFY <= limit_to_notify ) && ( limit_to_notify <= MAX_LIMIT_TO_NOTIFY) );
+
this->limit_to_notify = limit_to_notify;
}
+#include <boost/assert.hpp>
#include <fstream>
#include <iostream>
#include <iterator>
variables_map& vm
)
{
+ BOOST_ASSERT( !config_file_name.empty() );
+
ifstream ifs( config_file_name.c_str() );
if ( !ifs )
{
char* argv[]
)
{
+ BOOST_ASSERT( argc > 1 );
+ BOOST_ASSERT( argv != NULL );
+
variables_map vm;
bool command_line_parsed = parse_command_line( argc, argv, vm );
bool configuration_file_parsed = parse_configuration_file( vm );