![]() |
Qt 4.8
|
Implements the value instance of the xs:base64Binary type.
More...
#include <qbase64binary_p.h>
Public Types | |
| typedef AtomicValue::Ptr | Ptr |
Public Types inherited from QPatternist::AtomicValue | |
| typedef QList< AtomicValue::Ptr > | List |
| typedef QExplicitlySharedDataPointer< AtomicValue > | Ptr |
Public Functions | |
| const QByteArray & | asByteArray () const |
| virtual QString | stringValue () const |
| virtual ItemType::Ptr | type () const |
Public Functions inherited from QPatternist::AtomicValue | |
| virtual bool | evaluateEBV (const QExplicitlySharedDataPointer< DynamicContext > &context) const |
| virtual bool | hasError () const |
| virtual | ~AtomicValue () |
Public Functions inherited from QSharedData | |
| QSharedData () | |
| Constructs a QSharedData object with a reference count of 0. More... | |
| QSharedData (const QSharedData &) | |
| Constructs a QSharedData object with reference count 0. More... | |
Public Functions inherited from QPatternist::CppCastingHelper< AtomicValue > | |
| const TCastTarget * | as () const |
| TCastTarget * | as () |
Static Public Functions | |
| static AtomicValue::Ptr | fromLexical (const QString &value) |
| static Base64Binary::Ptr | fromValue (const QByteArray &data) |
Static Public Functions inherited from QPatternist::AtomicValue | |
| static ItemType::Ptr | qtToXDMType (const QXmlItem &item) |
| static QVariant | toQt (const AtomicValue *const value) |
| static QVariant | toQt (const AtomicValue::Ptr &value) |
| static Item | toXDM (const QVariant &value) |
Protected Functions | |
| Base64Binary (const QByteArray &val) | |
Protected Functions inherited from QPatternist::AtomicValue | |
| AtomicValue () | |
Protected Functions inherited from QPatternist::CppCastingHelper< AtomicValue > | |
| CppCastingHelper () | |
Protected Variables | |
| const QByteArray | m_value |
Static Private Functions | |
| static void | base64Decode (const QByteArray &in, QByteArray &out, bool &ok) |
Assumes in is a lexical representation of xs:base64Binary, and converts it to the binary data set in out. More... | |
Static Private Attributes | |
| static const char | Base64DecMap [128] |
Friends | |
| class | CommonValues |
Additional Inherited Members | |
Public Variables inherited from QSharedData | |
| QAtomicInt | ref |
Implements the value instance of the xs:base64Binary type.
Definition at line 70 of file qbase64binary_p.h.
Definition at line 75 of file qbase64binary_p.h.
|
protected |
Definition at line 54 of file qbase64binary.cpp.
Referenced by asByteArray(), fromLexical(), and fromValue().
|
inline |
Definition at line 86 of file qbase64binary_p.h.
Referenced by QPatternist::HexBinaryToBase64BinaryCaster::castFrom(), QPatternist::Base64BinaryToHexBinaryCaster::castFrom(), QPatternist::XsdTypeChecker::checkConstrainingFacets(), and QPatternist::AtomicValue::toQt().
|
staticprivate |
Assumes in is a lexical representation of xs:base64Binary, and converts it to the binary data set in out.
If instr is invalid Base64 content, ok is set to false, and the returned QByteArray has an undefined value.
We cannot use QByteArray::fromBase64() because it doesn't do the necessary validation that we need to properly implement W3C XML Schema's xs:base64Binary type.
Definition at line 78 of file qbase64binary.cpp.
Referenced by fromLexical().
|
static |
Creates an instance representing value.
Definition at line 185 of file qbase64binary.cpp.
Referenced by QPatternist::StringToBase64BinaryCaster::castFrom().
|
static |
Definition at line 201 of file qbase64binary.cpp.
Referenced by QPatternist::HexBinaryToBase64BinaryCaster::castFrom().
|
virtual |
Implements QPatternist::AtomicValue.
Reimplemented in QPatternist::HexBinary.
Definition at line 206 of file qbase64binary.cpp.
|
virtual |
Implements QPatternist::AtomicValue.
Reimplemented in QPatternist::HexBinary.
Definition at line 211 of file qbase64binary.cpp.
|
friend |
Definition at line 73 of file qbase64binary_p.h.
|
staticprivate |
Definition at line 110 of file qbase64binary_p.h.
Referenced by Base64Binary(), and base64Decode().
|
protected |
Definition at line 94 of file qbase64binary_p.h.
Referenced by asByteArray(), QPatternist::HexBinary::stringValue(), and stringValue().