update to the new pikotools api: change converting functions to the snake case

This commit is contained in:
Tomasz Sowa 2022-11-14 03:38:27 +01:00
parent 0ce05850b3
commit 7f4deaf847
1 changed files with 8 additions and 8 deletions

View File

@ -773,56 +773,56 @@ void DbConnector::get_value(const char * value_str, bool & field_value, const FT
void DbConnector::get_value(const char * value_str, short & field_value, const FT & field_type)
{
// IMPROVE ME give some overflow checking
field_value = (short)pt::Toi(value_str, 10);
field_value = (short)pt::to_i(value_str, 10);
}
void DbConnector::get_value(const char * value_str, unsigned short & field_value, const FT & field_type)
{
// IMPROVE ME give some overflow checking
field_value = (unsigned short)pt::Toui(value_str, 10);
field_value = (unsigned short)pt::to_ui(value_str, 10);
}
void DbConnector::get_value(const char * value_str, int & field_value, const FT & field_type)
{
// IMPROVE ME give some overflow checking
field_value = pt::Toi(value_str, 10);
field_value = pt::to_i(value_str, 10);
}
void DbConnector::get_value(const char * value_str, unsigned int & field_value, const FT & field_type)
{
// IMPROVE ME give some overflow checking
field_value = pt::Toui(value_str, 10);
field_value = pt::to_ui(value_str, 10);
}
void DbConnector::get_value(const char * value_str, long & field_value, const FT & field_type)
{
// IMPROVE ME give some overflow checking
field_value = pt::Tol(value_str, 10);
field_value = pt::to_l(value_str, 10);
}
void DbConnector::get_value(const char * value_str, unsigned long & field_value, const FT & field_type)
{
// IMPROVE ME give some overflow checking
field_value = pt::Toul(value_str, 10);
field_value = pt::to_ul(value_str, 10);
}
void DbConnector::get_value(const char * value_str, long long & field_value, const FT & field_type)
{
// IMPROVE ME give some overflow checking
field_value = pt::Toll(value_str, 10);
field_value = pt::to_ll(value_str, 10);
}
void DbConnector::get_value(const char * value_str, unsigned long long & field_value, const FT & field_type)
{
// IMPROVE ME give some overflow checking
field_value = pt::Toull(value_str, 10);
field_value = pt::to_ull(value_str, 10);
}