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

#include <balxml_decoder.h>

Inheritance diagram for balxml::Decoder_NillableContext:
balxml::Decoder_ElementContext

Public Member Functions

 Decoder_NillableContext ()
 
 ~Decoder_NillableContext () BSLS_KEYWORD_OVERRIDE
 
int startElement (Decoder *decoder) BSLS_KEYWORD_OVERRIDE
 
int endElement (Decoder *decoder) BSLS_KEYWORD_OVERRIDE
 
int addCharacters (const char *chars, bsl::size_t length, Decoder *decoder) BSLS_KEYWORD_OVERRIDE
 
int parseAttribute (const char *name, const char *value, bsl::size_t lenValue, Decoder *decoder) BSLS_KEYWORD_OVERRIDE
 
int parseSubElement (const char *elementName, Decoder *decoder) BSLS_KEYWORD_OVERRIDE
 
void setElementContext (Decoder_ElementContext *elementContext)
 
bool isNil () const
 Return true if the element is nil.
 
- Public Member Functions inherited from balxml::Decoder_ElementContext
virtual ~Decoder_ElementContext ()
 For syntactic purposes only.
 
int beginParse (Decoder *decoder)
 

Detailed Description

COMPONENT-PRIVATE CLASS. DO NOT USE OUTSIDE OF THIS COMPONENT.

Context for elements that have bdlat_FormattingMode::e_NILLABLE. It acts as a proxy and forwards all callbacks to the held d_elementContext_p. If endElement is called directly after startElement, then the isNil() accessor will return true.

See balxml_decoder

Constructor & Destructor Documentation

◆ Decoder_NillableContext()

balxml::Decoder_NillableContext::Decoder_NillableContext ( )

◆ ~Decoder_NillableContext()

balxml::Decoder_NillableContext::~Decoder_NillableContext ( )

Member Function Documentation

◆ addCharacters()

int balxml::Decoder_NillableContext::addCharacters ( const char *  chars,
bsl::size_t  length,
Decoder decoder 
)
virtual

◆ endElement()

int balxml::Decoder_NillableContext::endElement ( Decoder decoder)
virtual

◆ isNil()

bool balxml::Decoder_NillableContext::isNil ( ) const

◆ parseAttribute()

int balxml::Decoder_NillableContext::parseAttribute ( const char *  name,
const char *  value,
bsl::size_t  lenValue,
Decoder decoder 
)
virtual

◆ parseSubElement()

int balxml::Decoder_NillableContext::parseSubElement ( const char *  elementName,
Decoder decoder 
)
virtual

◆ setElementContext()

void balxml::Decoder_NillableContext::setElementContext ( Decoder_ElementContext elementContext)

Set the element context to the specified elementContext. The behavior of all methods in this class are undefined if this method has not been called.

◆ startElement()

int balxml::Decoder_NillableContext::startElement ( Decoder decoder)
virtual

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