SenXmlConstants.h File Reference

const TInt KErrSenInvalidCharacters

const TInt KErrSenInvalidCharacters

const TInt KErrSenZeroLengthDescriptor

const TInt KErrSenZeroLengthDescriptor

const TInt KErrSenXmlReaderNotSet

const TInt KErrSenXmlReaderNotSet

const TInt KErrSenXmlContentHandlerNotSet

const TInt KErrSenXmlContentHandlerNotSet

const TLitC< sizeof(L"SenXml")/2 > KSenXmlPanic

const TLitC < sizeof(L"SenXml")/2 > KSenXmlPanic [static]

const TInt KSenMaxXmlEscapedLength

const TInt KSenMaxXmlEscapedLength

const TLitC8< sizeof("/")> KSenSlash

const TLitC8 < sizeof("/")> KSenSlash [static]

const TLitC8< sizeof(":")> KSenColon

const TLitC8 < sizeof(":")> KSenColon [static]

const TLitC8< sizeof("<")>KSenLessThan={sizeof("<")-1,"<"};const static TLitC8< sizeof(">")>KSenGreaterThan={sizeof(">")-1,">

const TLitC8< sizeof("<")>KSenLessThan={sizeof("<")-1,"<"};const static TLitC8< sizeof(">")>KSenGreaterThan={sizeof(">")-1,"> [static]

const TLitC8< sizeof(" ")> KSenSpace

const TLitC8 < sizeof(" ")> KSenSpace [static]

const TLitC8< sizeof("'")> KSenQuot

const TLitC8 < sizeof("'")> KSenQuot [static]

const TLitC8< sizeof("\"")> KSenDblQuot

const TLitC8 < sizeof("\"")> KSenDblQuot [static]

const TLitC8< sizeof("=")> KSenEquals

const TLitC8 < sizeof("=")> KSenEquals [static]

const TLitC8< sizeof("=\"")> KSenEqualsDblQuot

const TLitC8 < sizeof("=\"")> KSenEqualsDblQuot [static]

const TLitC8< sizeof("/> KSenSlashGreaterThan

const TLitC8 < sizeof("/> KSenSlashGreaterThan [static]

const TLitC8< sizeof("</")> KSenLessThanSlash={sizeof("</")-1,"</"};const static TLitC8< sizeof(" xmlns")> KSenSpaceXmlns={sizeof(" xmlns")-1," xmlns"};const static TLitC8< sizeof("xmlns")> KSenXmlns={sizeof("xmlns")-1,"xmlns"};const static TLitC8< sizeof("xmlns:")> KSenXmlNsAttNamePlusColon={sizeof("xmlns:")-1,"xmlns:"};const static TLitC8< sizeof("<!--")> KSenXmlCommentStart={sizeof("<!--")-1,"<!--"};const static TLitC8< sizeof("-->")> KSenXmlCommentEnd={sizeof("-->")-1,"-->"};const static TLitC8< sizeof("<?")> KSenXmlInstructionStart={sizeof("<?")-1,"<?"};const static TLitC8< sizeof("?>")> KSenXmlInstructionEnd={sizeof("?>")-1,"?>"};const static TLitC8< sizeof("<!")> KSenXmlEntityStart={sizeof("<!")-1,"<!"};const static TLitC8< sizeof("&amp;")> KSenEscapedAmp={sizeof("&amp;")-1,"&amp;"};const static TLitC8< sizeof("&apos;")> KSenEscapedApos={sizeof("&apos;")-1,"&apos;"};const static TLitC8< sizeof("&quot;")> KSenEscapedDblQuot={sizeof("&quot;")-1,"&quot;"};const static TLitC8< sizeof("&gt;")> KSenEscapedGt={sizeof("&gt;")-1,"&gt;"};const static TLitC8< sizeof("&lt;")> KSenEscapedLt={sizeof("&lt;")-1,"&lt;"};const static TLitC8< sizeof("&")> KSenAmpersandDesC8={sizeof("&")-1,"&"};const static TLitC8< sizeof("\'")> KSenAposDesC8={sizeof("\'")-1,"\'"};const static TLitC8< sizeof("\"")> KSenDblQuotDesC8={sizeof("\"")-1,"\""};const static TLitC8< sizeof(">")> KSenGtDesC8={sizeof(">")-1,">"};const static TLitC8< sizeof("<")> KSenLtDesC8={sizeof("<")-1,"<"};enum TSenXmlPanic{EBadNamespace=1, EBadNamespacePrefix, EBufNot16Bit, EFragmentElementNotInitialized, EDelegatedFragmentAlreadySet, EInconsistentTokens, EBadInternalState};#33"X:/sf/mw/websrv/webservices/wsfragment/src/senfragmentbase.cpp"2#1"X:/epoc32/include/xml/parserfeature.h"1#define PARSERFEATURE_Hnamespace Xml{enum TParserFeature{EConvertTagsToLowerCase=0x0001, EErrorOnUnrecognisedTags=0x0002, EReportUnrecognisedTags=0x0004, EReportNamespaces=0x0008, EReportNamespacePrefixes=0x0010, ESendFullContentInOneChunk=0x0020, EReportNamespaceMapping=0x0040, ERawContent=0x0080, EReplaceIntEntityFromExtSubsetByRef=0x0100, EXmlVersion_1_1=0x0200, ELastFeature=EXmlVersion_1_1,};}#36"X:/sf/mw/websrv/webservices/wsfragment/src/senfragmentbase.cpp"2#1"X:/epoc32/include/xmlengserializationoptions.h"1#37"X:/sf/mw/websrv/webservices/wsfragment/src/senfragmentbase.cpp"2#1"X:/epoc32/include/xmlengbinarycontainer.h"1#1"X:/epoc32/include/xml/dom/xmlengbinarycontainer.h"1#define XMLENGBINARYCONTAINER_H#1"X:/epoc32/include/xml/dom/xmlengdatacontainer.h"1#define XMLENGDATACONTAINER_Hclass TXmlEngDataContainer:public TXmlEngNode{public:IMPORT_C TPtrC8 Cid() const ;IMPORT_C TUint Size() const ;protected:inline TXmlEngDataContainer();inline TXmlEngDataContainer(void *aInternal);};#1"X:/epoc32/include/xml/dom/xmlengdatacontainer.inl"1inline TXmlEngDataContainer::TXmlEngDataContainer(){}inline TXmlEngDataContainer::TXmlEngDataContainer(void *aInternal):TXmlEngNode(aInternal){}#60"X:/epoc32/include/xml/dom/xmlengdatacontainer.h"2#27"X:/epoc32/include/xml/dom/xmlengbinarycontainer.h"2class TXmlEngBinaryContainer:public TXmlEngDataContainer{public:IMPORT_C TPtrC8 Contents() const ;IMPORT_C void SetContentsL(const TDesC8 &aNewContents);IMPORT_C void AppendContentsL(const TDesC8 &aData);inline TXmlEngBinaryContainer();protected:inline TXmlEngBinaryContainer(void *aInternal);};#1"X:/epoc32/include/xml/dom/xmlengbinarycontainer.inl"1inline TXmlEngBinaryContainer::TXmlEngBinaryContainer():TXmlEngDataContainer(NULL){}inline TXmlEngBinaryContainer::TXmlEngBinaryContainer(void *aInternal):TXmlEngDataContainer(aInternal){}#86"X:/epoc32/include/xml/dom/xmlengbinarycontainer.h"2#17"X:/epoc32/include/xmlengbinarycontainer.h"2#38"X:/sf/mw/websrv/webservices/wsfragment/src/senfragmentbase.cpp"2#1"X:/epoc32/include/xmlengnodelist.h"1#1"X:/epoc32/include/xml/dom/xmlengnodelist.h"1#define XMLENGNODELIST_H#1"X:/epoc32/include/xml/dom/xmlengnodelist_impl.h"1#define XMLENGNODELIST_IMPL_Hclass RXmlEngNodeListImpl{public:IMPORT_C RXmlEngNodeListImpl();IMPORT_C void Close();IMPORT_C TInt Count() const ;IMPORT_C TBool HasNext() const ;IMPORT_C TXmlEngNode Next();void OpenL(void *aHead, TXmlEngNode::TXmlEngDOMNodeType aType, const TDesC8 &aName=KNullDesC8, const TDesC8 &aNs=KNullDesC8);void Open(void *aHead, TXmlEngNode::TXmlEngDOMNodeType aType);private:void *FindNextNode(void *aCurrentNode) const ;void *iCurrentNode;TInt iType;unsigned char *iName;unsigned char *iNsUri;};TBool StrEqualOrNull(const void *aStr1, const void *aStr2);#28"X:/epoc32/include/xml/dom/xmlengnodelist.h"2template< class T > class RXmlEngNodeList{friend class TXmlEngNode;friend class TXmlEngElement;public:inline TInt Count() const ;inline TBool HasNext() const ;inline T Next();inline void Close();private:inline void OpenL(void *aHead, TXmlEngNode::TXmlEngDOMNodeType aType, const TDesC8 &aName=KNullDesC8, const TDesC8 &aNs=KNullDesC8);inline void Open(void *aHead, TXmlEngNode::TXmlEngDOMNodeType aType);private:RXmlEngNodeListImpl iList;};template<>class RXmlEngNodeList< TXmlEngNode >:public RXmlEngNodeListImpl{};#1"X:/epoc32/include/xml/dom/xmlengnodelist.inl"1template< class T > inline TInt RXmlEngNodeList< T >::Count() const {return iList.Count();}template< class T > inline TBool RXmlEngNodeList< T >::HasNext() const {return iList.HasNext();}template< class T > inline T RXmlEngNodeList< T >::Next(){TXmlEngNode t=iList.Next();return *(static_cast< T * > &t));}template< class T > inline void RXmlEngNodeList< T >::Close(){iList.Close();}template< class T > inline void RXmlEngNodeList< T >::OpenL(void *aHead, TXmlEngNode::TXmlEngDOMNodeType aType, const TDesC8 &aName, const TDesC8 &aNs){iList.OpenL(aHead, aType, aName, aNs);}template< class T > inline void RXmlEngNodeList< T >::Open(void *aHead, TXmlEngNode::TXmlEngDOMNodeType aType){iList.Open(aHead, aType);}#111"X:/epoc32/include/xml/dom/xmlengnodelist.h"2#17"X:/epoc32/include/xmlengnodelist.h"2#39"X:/sf/mw/websrv/webservices/wsfragment/src/senfragmentbase.cpp"2typedef unsigned char xmlChar;using namespace Xml;namespace{const TInt KFlatBufSize=128;const static TLitC< sizeof(L"SenFragment")/2 > KSenFragmentPanic={sizeof(L"SenFragment")/2-1, L"SenFragment"};TBool EncodeXmlEscapesL(const TDesC8 &aOriginal, HBufC8 *&aEncoded){TBool retVal=EFalse;delete aEncoded;aEncoded=0;if(aOriginal==KNullDesC8){return retVal;}TPtrC8 tokens BaseConstructL

const TLitC8 < sizeof("</")> KSenLessThanSlash={sizeof("</")-1,"</"};const static TLitC8 < sizeof(" xmlns")> KSenSpaceXmlns={sizeof(" xmlns")-1," xmlns"};const static TLitC8 < sizeof("xmlns")> KSenXmlns={sizeof("xmlns")-1,"xmlns"};const static TLitC8 < sizeof("xmlns:")> KSenXmlNsAttNamePlusColon={sizeof("xmlns:")-1,"xmlns:"};const static TLitC8 < sizeof("<!--")> KSenXmlCommentStart={sizeof("<!--")-1,"<!--"};const static TLitC8 < sizeof("-->")> KSenXmlCommentEnd={sizeof("-->")-1,"-->"};const static TLitC8 < sizeof("<?")> KSenXmlInstructionStart={sizeof("<?")-1,"<?"};const static TLitC8 < sizeof("?>")> KSenXmlInstructionEnd={sizeof("?>")-1,"?>"};const static TLitC8 < sizeof("<!")> KSenXmlEntityStart={sizeof("<!")-1,"<!"};const static TLitC8 < sizeof("&amp;")> KSenEscapedAmp={sizeof("&amp;")-1,"&amp;"};const static TLitC8 < sizeof("&apos;")> KSenEscapedApos={sizeof("&apos;")-1,"&apos;"};const static TLitC8 < sizeof("&quot;")> KSenEscapedDblQuot={sizeof("&quot;")-1,"&quot;"};const static TLitC8 < sizeof("&gt;")> KSenEscapedGt={sizeof("&gt;")-1,"&gt;"};const static TLitC8 < sizeof("&lt;")> KSenEscapedLt={sizeof("&lt;")-1,"&lt;"};const static TLitC8 < sizeof("&")> KSenAmpersandDesC8={sizeof("&")-1,"&"};const static TLitC8 < sizeof("\'")> KSenAposDesC8={sizeof("\'")-1,"\'"};const static TLitC8 < sizeof("\"")> KSenDblQuotDesC8={sizeof("\"")-1,"\""};const static TLitC8 < sizeof(">")> KSenGtDesC8={sizeof(">")-1,">"};const static TLitC8 < sizeof("<")> KSenLtDesC8={sizeof("<")-1,"<"};enum TSenXmlPanic{EBadNamespace=1, EBadNamespacePrefix, EBufNot16Bit, EFragmentElementNotInitialized, EDelegatedFragmentAlreadySet, EInconsistentTokens, EBadInternalState};#33"X:/sf/mw/websrv/webservices/wsfragment/src/senfragmentbase.cpp"2#1"X:/epoc32/include/xml/parserfeature.h"1#define PARSERFEATURE_Hnamespace Xml{enum TParserFeature{EConvertTagsToLowerCase=0x0001, EErrorOnUnrecognisedTags=0x0002, EReportUnrecognisedTags=0x0004, EReportNamespaces=0x0008, EReportNamespacePrefixes=0x0010, ESendFullContentInOneChunk=0x0020, EReportNamespaceMapping=0x0040, ERawContent=0x0080, EReplaceIntEntityFromExtSubsetByRef=0x0100, EXmlVersion_1_1=0x0200, ELastFeature=EXmlVersion_1_1,};}#36"X:/sf/mw/websrv/webservices/wsfragment/src/senfragmentbase.cpp"2#1"X:/epoc32/include/xmlengserializationoptions.h"1#37"X:/sf/mw/websrv/webservices/wsfragment/src/senfragmentbase.cpp"2#1"X:/epoc32/include/xmlengbinarycontainer.h"1#1"X:/epoc32/include/xml/dom/xmlengbinarycontainer.h"1#define XMLENGBINARYCONTAINER_H#1"X:/epoc32/include/xml/dom/xmlengdatacontainer.h"1#define XMLENGDATACONTAINER_Hclass TXmlEngDataContainer:public TXmlEngNode{public:IMPORT_C TPtrC8 Cid() const ;IMPORT_C TUint Size() const ;protected:inline TXmlEngDataContainer();inline TXmlEngDataContainer(void *aInternal);};#1"X:/epoc32/include/xml/dom/xmlengdatacontainer.inl"1inline TXmlEngDataContainer::TXmlEngDataContainer(){}inline TXmlEngDataContainer::TXmlEngDataContainer(void *aInternal):TXmlEngNode(aInternal){}#60"X:/epoc32/include/xml/dom/xmlengdatacontainer.h"2#27"X:/epoc32/include/xml/dom/xmlengbinarycontainer.h"2class TXmlEngBinaryContainer:public TXmlEngDataContainer{public:IMPORT_C TPtrC8 Contents() const ;IMPORT_C void SetContentsL(const TDesC8 &aNewContents);IMPORT_C void AppendContentsL(const TDesC8 &aData);inline TXmlEngBinaryContainer();protected:inline TXmlEngBinaryContainer(void *aInternal);};#1"X:/epoc32/include/xml/dom/xmlengbinarycontainer.inl"1inline TXmlEngBinaryContainer::TXmlEngBinaryContainer():TXmlEngDataContainer(NULL){}inline TXmlEngBinaryContainer::TXmlEngBinaryContainer(void *aInternal):TXmlEngDataContainer(aInternal){}#86"X:/epoc32/include/xml/dom/xmlengbinarycontainer.h"2#17"X:/epoc32/include/xmlengbinarycontainer.h"2#38"X:/sf/mw/websrv/webservices/wsfragment/src/senfragmentbase.cpp"2#1"X:/epoc32/include/xmlengnodelist.h"1#1"X:/epoc32/include/xml/dom/xmlengnodelist.h"1#define XMLENGNODELIST_H#1"X:/epoc32/include/xml/dom/xmlengnodelist_impl.h"1#define XMLENGNODELIST_IMPL_Hclass RXmlEngNodeListImpl{public:IMPORT_C RXmlEngNodeListImpl();IMPORT_C void Close();IMPORT_C TInt Count() const ;IMPORT_C TBool HasNext() const ;IMPORT_C TXmlEngNode Next();void OpenL(void *aHead, TXmlEngNode::TXmlEngDOMNodeType aType, const TDesC8 &aName=KNullDesC8, const TDesC8 &aNs=KNullDesC8);void Open(void *aHead, TXmlEngNode::TXmlEngDOMNodeType aType);private:void *FindNextNode(void *aCurrentNode) const ;void *iCurrentNode;TInt iType;unsigned char *iName;unsigned char *iNsUri;};TBool StrEqualOrNull(const void *aStr1, const void *aStr2);#28"X:/epoc32/include/xml/dom/xmlengnodelist.h"2template< class T > class RXmlEngNodeList{friend class TXmlEngNode;friend class TXmlEngElement;public:inline TInt Count() const ;inline TBool HasNext() const ;inline T Next();inline void Close();private:inline void OpenL(void *aHead, TXmlEngNode::TXmlEngDOMNodeType aType, const TDesC8 &aName=KNullDesC8, const TDesC8 &aNs=KNullDesC8);inline void Open(void *aHead, TXmlEngNode::TXmlEngDOMNodeType aType);private:RXmlEngNodeListImpl iList;};template<>class RXmlEngNodeList< TXmlEngNode >:public RXmlEngNodeListImpl{};#1"X:/epoc32/include/xml/dom/xmlengnodelist.inl"1template< class T > inline TInt RXmlEngNodeList< T >::Count() const {return iList.Count();}template< class T > inline TBool RXmlEngNodeList< T >::HasNext() const {return iList.HasNext();}template< class T > inline T RXmlEngNodeList< T >::Next(){TXmlEngNode t=iList.Next();return *(static_cast< T * > &t));}template< class T > inline void RXmlEngNodeList< T >::Close(){iList.Close();}template< class T > inline void RXmlEngNodeList< T >::OpenL(void *aHead, TXmlEngNode::TXmlEngDOMNodeType aType, const TDesC8 &aName, const TDesC8 &aNs){iList.OpenL(aHead, aType, aName, aNs);}template< class T > inline void RXmlEngNodeList< T >::Open(void *aHead, TXmlEngNode::TXmlEngDOMNodeType aType){iList.Open(aHead, aType);}#111"X:/epoc32/include/xml/dom/xmlengnodelist.h"2#17"X:/epoc32/include/xmlengnodelist.h"2#39"X:/sf/mw/websrv/webservices/wsfragment/src/senfragmentbase.cpp"2typedef unsigned char xmlChar;using namespace Xml;namespace{const TInt KFlatBufSize=128;const static TLitC< sizeof(L"SenFragment")/2 > KSenFragmentPanic={sizeof(L"SenFragment")/2-1, L"SenFragment"};TBool EncodeXmlEscapesL(const TDesC8 &aOriginal, HBufC8 *&aEncoded){TBool retVal=EFalse;delete aEncoded;aEncoded=0;if(aOriginal==KNullDesC8){return retVal;}TPtrC8 tokens BaseConstructL [static]

return pNew

return pNew