BDE 4.14.0 Production release
Loading...
Searching...
No Matches
balxml::Encoder_EncodeObject Class Reference

#include <balxml_encoder.h>

Public Member Functions

template<class TYPE >
int executeImp (const TYPE &object, const bsl::string_view &tag, int formattingMode, bdlat_TypeCategory::Array)
 
template<class TYPE >
int executeImp (const TYPE &object, const bsl::string_view &tag, int formattingMode, bdlat_TypeCategory::NullableValue)
 
template<class TYPE >
int executeImp (const TYPE &object, const bsl::string_view &tag, int formattingMode, bdlat_TypeCategory::DynamicType)
 
template<class TYPE , class ANY_CATEGORY >
int executeImp (const TYPE &object, const bsl::string_view &tag, int formattingMode, ANY_CATEGORY)
 
int executeImp (const bsl::vector< char > &object, const bsl::string_view &tag, int formattingMode, bdlat_TypeCategory::Array)
 
template<class TYPE >
int executeArrayListImp (const TYPE &object, const bsl::string_view &tag)
 
template<class TYPE >
int executeArrayRepetitionImp (const TYPE &object, const bsl::string_view &tag, int formattingMode)
 
 Encoder_EncodeObject (Encoder_Context *context)
 
template<class TYPE , class INFO_TYPE >
int operator() (const TYPE &object, const INFO_TYPE &info)
 
template<class TYPE >
int execute (const TYPE &object, const bsl::string_view &tag, int formattingMode)
 

Detailed Description

Component-private class. Do not use.

This struct encodes an object with enclosing tags. Compared to the EncoderUtil_EncodeValue class below, this class prefixes the value with an opening tag, and suffixes the value with a closing tag. In pseudocode, this is equivalent to:

openTag()
closeTag()
Definition balxml_encoder.h:571

There is an overloaded version of bsl::vector<char> because, based on the formatting mode, this class needs to switch between encoding the value in a single tag (i.e., when using BASE64, TEXT, IS_LIST or HEX) and encoding the value in multiple tags (i.e., when repetition is used).

See balxml_encoder

Constructor & Destructor Documentation

◆ Encoder_EncodeObject()

balxml::Encoder_EncodeObject::Encoder_EncodeObject ( Encoder_Context context)
inlineexplicit

Member Function Documentation

◆ execute()

template<class TYPE >
int balxml::Encoder_EncodeObject::execute ( const TYPE &  object,
const bsl::string_view tag,
int  formattingMode 
)
inline

◆ executeArrayListImp()

template<class TYPE >
int balxml::Encoder_EncodeObject::executeArrayListImp ( const TYPE &  object,
const bsl::string_view tag 
)

◆ executeArrayRepetitionImp()

template<class TYPE >
int balxml::Encoder_EncodeObject::executeArrayRepetitionImp ( const TYPE &  object,
const bsl::string_view tag,
int  formattingMode 
)

◆ executeImp() [1/5]

int balxml::Encoder_EncodeObject::executeImp ( const bsl::vector< char > &  object,
const bsl::string_view tag,
int  formattingMode,
bdlat_TypeCategory::Array   
)

◆ executeImp() [2/5]

template<class TYPE , class ANY_CATEGORY >
int balxml::Encoder_EncodeObject::executeImp ( const TYPE &  object,
const bsl::string_view tag,
int  formattingMode,
ANY_CATEGORY   
)

◆ executeImp() [3/5]

template<class TYPE >
int balxml::Encoder_EncodeObject::executeImp ( const TYPE &  object,
const bsl::string_view tag,
int  formattingMode,
bdlat_TypeCategory::Array   
)
inline

◆ executeImp() [4/5]

template<class TYPE >
int balxml::Encoder_EncodeObject::executeImp ( const TYPE &  object,
const bsl::string_view tag,
int  formattingMode,
bdlat_TypeCategory::DynamicType   
)
inline

◆ executeImp() [5/5]

template<class TYPE >
int balxml::Encoder_EncodeObject::executeImp ( const TYPE &  object,
const bsl::string_view tag,
int  formattingMode,
bdlat_TypeCategory::NullableValue   
)
inline

◆ operator()()

template<class TYPE , class INFO_TYPE >
int balxml::Encoder_EncodeObject::operator() ( const TYPE &  object,
const INFO_TYPE &  info 
)
inline

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