Belle II Software  release-08-01-10
TokenCast< ModuleID_t > Struct Reference

ModuleID_t specialization of TokenCast<T> the decimal point is set to '. More...

#include <ARICHDatabaseTools.h>

Public Member Functions

auto isValidChar (const unsigned char character) const noexcept -> bool
 isValidChar defines characters that are allowed for the convertion More...
 
auto operator() (const std::string &rToken) const -> ModuleID_t
 operator () converts given token to an integer. More...
 

Detailed Description

ModuleID_t specialization of TokenCast<T> the decimal point is set to '.

'!

Definition at line 298 of file ARICHDatabaseTools.h.

Member Function Documentation

◆ isValidChar()

auto isValidChar ( const unsigned char  character) const -> bool
inlinenoexcept

isValidChar defines characters that are allowed for the convertion

Parameters
character
Returns
true if its allowed for convertion

Definition at line 304 of file ARICHDatabaseTools.h.

◆ operator()()

auto operator() ( const std::string &  rToken) const -> ModuleID_t
inline

operator () converts given token to an integer.

Parameters
rToken
Exceptions
invalid_argumentin case the given string is invalid for convertion
std::out_of_rangeif the given number is smaller/greater than a double.

Definition at line 318 of file ARICHDatabaseTools.h.


The documentation for this struct was generated from the following file: