OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
ot::convert Namespace Reference

Functions

OT_SERVICEFOUNDATION_API_EXPORT std::string toString (ot::ItemCheckedState _flag)
 Will return a string representation of the provided flag.
 
OT_SERVICEFOUNDATION_API_EXPORT std::string toString (ot::ItemFlag _flag)
 Will return a string representation of the provided flag.
 
OT_SERVICEFOUNDATION_API_EXPORT std::list< std::string > toString (ItemCheckedStateFlags _flags)
 Will return a list with all flags that are set as a string.
 
OT_SERVICEFOUNDATION_API_EXPORT std::list< std::string > toString (ItemFlags _flags)
 Will return a list with all flags that are set as a string.
 
OT_SERVICEFOUNDATION_API_EXPORT ot::ItemCheckedState toItemCheckedState (const std::string &_flags)
 Will return a flags object containing all set flags that are provided in the list.
 
OT_SERVICEFOUNDATION_API_EXPORT ot::ItemFlag toItemFlag (const std::string &_flags)
 Will return a flags object containing all set flags that are provided in the list.
 
OT_SERVICEFOUNDATION_API_EXPORT ItemCheckedStateFlags toItemCheckedStateFlags (const std::list< std::string > &_flags)
 Will return a flags object containing all set flags that are provided in the list.
 
OT_SERVICEFOUNDATION_API_EXPORT ItemFlags toItemFlags (const std::list< std::string > &_flags)
 Will return a flags object containing all set flags that are provided in the list.
 
template<class T >
toNumber (const std::string &_string, bool &_failed)
 Will convert and return the number specified in the string.
 

Function Documentation

◆ toItemCheckedState()

ot::ItemCheckedState ot::convert::toItemCheckedState ( const std::string & _flags)

Will return a flags object containing all set flags that are provided in the list.

Parameters
_flagsThe list containing all flags that should be set

◆ toItemCheckedStateFlags()

ot::ItemCheckedStateFlags ot::convert::toItemCheckedStateFlags ( const std::list< std::string > & _flags)

Will return a flags object containing all set flags that are provided in the list.

Parameters
_flagsThe list containing all flags that should be set

◆ toItemFlag()

ot::ItemFlag ot::convert::toItemFlag ( const std::string & _flags)

Will return a flags object containing all set flags that are provided in the list.

Parameters
_flagsThe list containing all flags that should be set

◆ toItemFlags()

ot::ItemFlags ot::convert::toItemFlags ( const std::list< std::string > & _flags)

Will return a flags object containing all set flags that are provided in the list.

Parameters
_flagsThe list containing all flags that should be set

◆ toNumber()

template<class T >
T ot::convert::toNumber ( const std::string & _string,
bool & _failed )

Will convert and return the number specified in the string.

Parameters
_stringThe string containing the number
_failedReference to a flag where the failed state will be written to

◆ toString() [1/4]

std::list< std::string > ot::convert::toString ( ItemCheckedStateFlags _flags)

Will return a list with all flags that are set as a string.

Parameters
_flagsThe flags

◆ toString() [2/4]

std::list< std::string > ot::convert::toString ( ItemFlags _flags)

Will return a list with all flags that are set as a string.

Parameters
_flagsThe flags

◆ toString() [3/4]

std::string ot::convert::toString ( ot::ItemCheckedState _flag)

Will return a string representation of the provided flag.

Parameters
_flagThe flag, must be only one flag

◆ toString() [4/4]

std::string ot::convert::toString ( ot::ItemFlag _flag)

Will return a string representation of the provided flag.

Parameters
_flagThe flag, must be only one flag