CharToCharIdentEncCvtFunctor< CODE_UNIT_SIZE > Class Template Reference

Declaration of the functor class template that converters SQL characters and wide-characters types to C characters and wide-characters types when the encoding is identical between the source and the target. More...

List of all members.

Public Member Functions

 CharToCharIdentEncCvtFunctor (const SqlTypeMetadata &, const SqlCTypeMetadata &in_cMetadata)
 Public ====================================================================================.
simba_signed_native GetRetrievalLength (simba_signed_native in_cDataMaxLength)
 Return the maximum number of bytes to retrieve in order to fill-up a buffer of the given size.
void operator() (const void *in_source, simba_signed_native in_sourceLength, void *in_target, simba_signed_native &io_targetLength, IConversionListener &in_listener)
 Functor operator that does the actual conversion from the source to the target.

Detailed Description

template<simba_uint8 CODE_UNIT_SIZE>
class Simba::Support::CharToCharIdentEncCvtFunctor< CODE_UNIT_SIZE >

Declaration of the functor class template that converters SQL characters and wide-characters types to C characters and wide-characters types when the encoding is identical between the source and the target.

Parameters:
CODE_UNIT_SIZE Size of the code unit for both the source and target.

Constructor & Destructor Documentation

CharToCharIdentEncCvtFunctor ( const SqlTypeMetadata ,
const SqlCTypeMetadata in_cMetadata 
) [inline]

Public ====================================================================================.

Constructor.

Parameters:
in_sqlMetadata Source metadata.
in_cMetadata Target metadata.

Member Function Documentation

simba_signed_native GetRetrievalLength ( simba_signed_native  in_cDataMaxLength  ) 

Return the maximum number of bytes to retrieve in order to fill-up a buffer of the given size.

Parameters:
in_cDataMaxLength Number of bytes available in the output buffer.
Returns:
Number of bytes to retrieve if positive, or -1 if all data should be retrieved.
void operator() ( const void *  in_source,
simba_signed_native  in_sourceLength,
void *  in_target,
simba_signed_native io_targetLength,
IConversionListener in_listener 
)

Functor operator that does the actual conversion from the source to the target.

Parameters:
in_source Source data pointer.
in_sourceLength Length in bytes of the source.
in_target Target data pointer.
io_targetLength In input, capacity of the target. In output, total size of the target before possible truncation.

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

Generated on Wed May 17 14:21:18 2017 for SimbaEngine 10.1.3.1011 by simba