651 cout <<
"Options propagated to program:" << endl;
654 for (map<string,po::variable_value>::const_iterator m=
fVariables.begin();
656 Max(maxlen, m->first.length());
658 cout.setf(ios_base::left);
661 for (map<string,po::variable_value>::const_iterator m=
fVariables.begin();
664 const po::variable_value &v = m->second;
668 if (v.value().type()==
typeid(bool))
670 if (v.value().type()==
typeid(string))
672 if (v.value().type()==
typeid(int16_t))
674 if (v.value().type()==
typeid(int32_t))
676 if (v.value().type()==
typeid(int64_t))
678 if (v.value().type()==
typeid(uint16_t))
680 if (v.value().type()==
typeid(uint32_t))
682 if (v.value().type()==
typeid(uint64_t))
684 if (v.value().type()==
typeid(float))
686 if (v.value().type()==
typeid(double))
689 str <<
" Hex<uint16_t>";
691 str <<
" Hex<uint32_t>";
693 str <<
" Hex<uint64_t>";
694 if (v.value().type()==
typeid(vector<string>))
695 str <<
" vector<string>";
696 if (v.value().type()==
typeid(vector<int16_t>))
697 str <<
" vector<int16_t>";
698 if (v.value().type()==
typeid(vector<int32_t>))
699 str <<
" vector<int32_t>";
700 if (v.value().type()==
typeid(vector<int64_t>))
701 str <<
" vector<int64_t>";
702 if (v.value().type()==
typeid(vector<uint16_t>))
703 str <<
" vector<uint16_t>";
704 if (v.value().type()==
typeid(vector<uint32_t>))
705 str <<
" vector<uint32_t>";
706 if (v.value().type()==
typeid(vector<uint64_t>))
707 str <<
" vector<uint64_t>";
708 if (v.value().type()==
typeid(vector<float>))
709 str <<
" vector<float>";
710 if (v.value().type()==
typeid(vector<double>))
711 str <<
" vector<double>";
713 if (str.str().empty())
714 str <<
" unknown[" << v.value().type().name() <<
"]";
717 cout << setw(maxlen) << m->first;
720 cout << var <<
" #" << str.str();
723 cout <<
" [default]";
po::typed_value< T > * var(T *ptr=0)
std::string VarAsStr(const po::variable_value &v) const
static void Max(int &val, const int &comp)
Helper function which return the max of the two arguments in the first argument.
po::variables_map fVariables
URL for database connection (see Configuration::parse_database)