update to the new pikotools api: change converting functions to the snake case
This commit is contained in:
parent
0ce05850b3
commit
7f4deaf847
|
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue