8#ifndef INCLUDED_BALXML_UTF8READERWRAPPER
9#define INCLUDED_BALXML_UTF8READERWRAPPER
298#include <balscm_version.h>
309#include <bsl_cstddef.h>
310#include <bsl_functional.h>
311#include <bsl_fstream.h>
312#include <bsl_streambuf.h>
317class ElementAttribute;
338 bsl::ifstream d_stream;
341 bool d_useHeldErrorInfo;
360 int doOpen(
const char *url,
const char *encoding);
370 void reportUtf8Error(
int utf8Rc);
376 const Reader *heldReader()
const;
441 int open(const
char *filename, const
char *encoding = 0)
576 const
char *localName,
589 const
char *localName,
689const Reader *Utf8ReaderWrapper::heldReader()
const
Definition balxml_elementattribute.h:289
Definition balxml_errorinfo.h:353
Definition balxml_prefixstack.h:137
Definition balxml_reader.h:835
NodeType
Definition balxml_reader.h:839
Definition balxml_utf8readerwrapper.h:333
const char * nodeValue() const BSLS_KEYWORD_OVERRIDE
bool isOpen() const BSLS_KEYWORD_OVERRIDE
Utf8ReaderWrapper(Reader *reader, bslma::Allocator *basicAllocator=0)
int nodeNamespaceId() const BSLS_KEYWORD_OVERRIDE
BSLMF_NESTED_TRAIT_DECLARATION(Utf8ReaderWrapper, bslma::UsesBslmaAllocator)
void setOptions(unsigned int flags) BSLS_KEYWORD_OVERRIDE
XmlResolverFunctor resolver() const BSLS_KEYWORD_OVERRIDE
Return the external XML resource resolver.
bool nodeHasValue() const BSLS_KEYWORD_OVERRIDE
Return true if the current node has a value and false otherwise.
const char * nodeBaseUri() const BSLS_KEYWORD_OVERRIDE
int open(const char *filename, const char *encoding=0) BSLS_KEYWORD_OVERRIDE
const char * nodeName() const BSLS_KEYWORD_OVERRIDE
int getLineNumber() const BSLS_KEYWORD_OVERRIDE
void setPrefixStack(PrefixStack *prefixes) BSLS_KEYWORD_OVERRIDE
~Utf8ReaderWrapper() BSLS_KEYWORD_OVERRIDE
Close the held reader and destroy this object.
const char * documentEncoding() const BSLS_KEYWORD_OVERRIDE
const ErrorInfo & errorInfo() const BSLS_KEYWORD_OVERRIDE
int advanceToNextNode() BSLS_KEYWORD_OVERRIDE
const char * nodeNamespaceUri() const BSLS_KEYWORD_OVERRIDE
bslma::Allocator * allocator() const
Return the allocator used by this object to allocate memory.
const char * nodeLocalName() const BSLS_KEYWORD_OVERRIDE
unsigned int options() const BSLS_KEYWORD_OVERRIDE
Return the option flags.
int lookupAttribute(ElementAttribute *attribute, int index) const BSLS_KEYWORD_OVERRIDE
int nodeDepth() const BSLS_KEYWORD_OVERRIDE
void setResolver(XmlResolverFunctor resolver) BSLS_KEYWORD_OVERRIDE
int getColumnNumber() const BSLS_KEYWORD_OVERRIDE
NodeType nodeType() const BSLS_KEYWORD_OVERRIDE
int numAttributes() const BSLS_KEYWORD_OVERRIDE
PrefixStack * prefixStack() const BSLS_KEYWORD_OVERRIDE
const char * nodePrefix() const BSLS_KEYWORD_OVERRIDE
void close() BSLS_KEYWORD_OVERRIDE
bool isEmptyElement() const BSLS_KEYWORD_OVERRIDE
Definition bdlde_utf8checkinginstreambufwrapper.h:244
Definition bdlsb_fixedmeminstreambuf.h:187
Forward declaration.
Definition bslstl_function.h:934
Definition bslma_allocator.h:457
#define BSLS_IDENT(str)
Definition bsls_ident.h:195
#define BSLS_KEYWORD_OVERRIDE
Definition bsls_keyword.h:653
Definition balxml_base64parser.h:150
Definition bdlb_printmethods.h:283
Definition balxml_encoderoptions.h:68
Definition bslma_usesbslmaallocator.h:343