Quick Links: |
symbolic converter utility More...
#include <bdlat_symbolicconverter.h>
Static Public Member Functions | |
template<class LHS_TYPE , class RHS_TYPE > | |
static int | convert (LHS_TYPE *lhs, const RHS_TYPE &rhs) |
template<class LHS_TYPE , class RHS_TYPE > | |
static int | convert (LHS_TYPE *lhs, const RHS_TYPE &rhs, bsl::ostream &errorStream) |
This utility contains a single convert
function that converts a value from one type to another compatible type.
See Component bdlat_symbolicconverter
static int bdlat_SymbolicConverter::convert | ( | LHS_TYPE * | lhs, | |
const RHS_TYPE & | rhs | |||
) | [static] |
static int bdlat_SymbolicConverter::convert | ( | LHS_TYPE * | lhs, | |
const RHS_TYPE & | rhs, | |||
bsl::ostream & | errorStream | |||
) | [static] |
Convert the value of the specified rhs
object to the specified (modifiable) lhs
object. Optionally specify an errorStream
to print error messages. Return 0 on success and a non-zero value otherwise. The supported conversions are described in the bdlat_symbolicconverter
component-level documentation.