Public Member Functions
zorba::ItemFactory Class Reference

ItemFactory to create Items. More...

#include <zorba/item_factory.h>

List of all members.

Public Member Functions

virtual Item createAnyURI (const String &aURI)=0
 Creates an AnyURI Item see [http://www.w3.org/TR/xmlschema-2/#anyURI].
virtual Item createAttributeNode (Item aParent, Item aNodeName, Item aTypeName, Item aTypedValue)=0
 Create a new attribute node N and place it among the attributes of a given parent node.
virtual Item createAttributeNode (Item aParent, Item aNodeName, Item aTypeName, std::vector< Item > aTypedValue)=0
virtual Item createBase64Binary (const char *aBinData, size_t aLength)=0
 Creates a Base64Binary Item see [http://www.w3.org/TR/xmlschema-2/#base64Binary].
virtual Item createBase64Binary (std::istream &aStream)=0
 Creates a Base64Binary Item see [http://www.w3.org/TR/xmlschema-2/#base64Binary].
virtual Item createBase64Binary (const unsigned char *aBinData, size_t aLength)=0
 Creates a Base64Binary Item see [http://www.w3.org/TR/xmlschema-2/#base64Binary].
virtual Item createBoolean (bool aValue)=0
 Creates a Boolean Item see [http://www.w3.org/TR/xmlschema-2/#bool].
virtual Item createByte (char aByte)=0
 Creates a Byte Item see [http://www.w3.org/TR/xmlschema-2/#byte].
virtual Item createDate (const String &aDate)=0
 Creates a Date Item see [http://www.w3.org/TR/xmlschema-2/#date].
virtual Item createDate (short aYear, short aMonth, short aDay)=0
 Creates a Date Item see [http://www.w3.org/TR/xmlschema-2/#date].
virtual Item createDateTime (const String &aDateTimeValue)=0
 Creates a DateTime Item see [http://www.w3.org/TR/xmlschema-2/#dateTime].
virtual Item createDateTime (short aYear, short aMonth, short aDay, short aHour, short aMinute, double aSecond, short aTimeZone_hours)=0
 Creates a DateTime Item see [http://www.w3.org/TR/xmlschema-2/#dateTime].
virtual Item createDecimal (const String &aValue)=0
 Creates a Decimal Item see [http://www.w3.org/TR/xmlschema-2/#decimal].
virtual Item createDecimalFromDouble (double aValue)=0
 Creates a Decimal Item see [http://www.w3.org/TR/xmlschema-2/#decimal].
virtual Item createDecimalFromLong (unsigned long aValue)=0
 Creates a Decimal Item see [http://www.w3.org/TR/xmlschema-2/#decimal].
virtual Item createDouble (const String &aValue)=0
 Creates a Double Item see [http://www.w3.org/TR/xmlschema-2/#double].
virtual Item createDouble (double aValue)=0
 Creates a Double Item see [http://www.w3.org/TR/xmlschema-2/#double].
virtual Item createDuration (const String &aValue)=0
 Creates a Duration Item see [http://www.w3.org/TR/xmlschema-2/#duration].
virtual Item createDuration (short aYear, short aMonths, short aDays, short aHours, short aMinutes, double aSeconds)=0
 Creates a Duration Item see [http://www.w3.org/TR/xmlschema-2/#duration].
virtual Item createElementNode (Item &aParent, Item aNodeName, Item aTypeName, bool aHasTypedValue, bool aHasEmptyValue, std::vector< std::pair< String, String > > aNsBindings)=0
 Creates a new element node.
virtual Item createFloat (const String &aValue)=0
 creates a float item see [http://www.w3.org/tr/xmlschema-2/#float]
virtual Item createFloat (float aValue)=0
 creates a float item see [http://www.w3.org/tr/xmlschema-2/#float]
virtual Item createGDay (const String &aValue)=0
 Creates a gDay Item see [http://www.w3.org/TR/xmlschema-2/#gDay].
virtual Item createGDay (short aDay)=0
 Creates a gDay Item see [http://www.w3.org/TR/xmlschema-2/#gDay].
virtual Item createGMonth (const String &aValue)=0
 Creates a gMonth Item see [http://www.w3.org/TR/xmlschema-2/#gMonth].
virtual Item createGMonth (short aMonth)=0
 Creates a gMonth Item see [http://www.w3.org/TR/xmlschema-2/#gMonth].
virtual Item createGMonthDay (const String &aValue)=0
 Creates a gMonthDay Item see [http://www.w3.org/TR/xmlschema-2/#gMonthDay].
virtual Item createGMonthDay (short aMonth, short aDay)=0
 Creates a gMonthDay Item see [http://www.w3.org/TR/xmlschema-2/#gMonthDay].
virtual Item createGYear (short aYear)=0
 Creates a gYear Item see [http://www.w3.org/TR/xmlschema-2/#gYear].
virtual Item createGYear (const String &aValue)=0
 Creates a gYear Item see [http://www.w3.org/TR/xmlschema-2/#gYear].
virtual Item createGYearMonth (const String &aValue)=0
 Creates a gYearMonth Item see [http://www.w3.org/TR/xmlschema-2/#gYearMonth].
virtual Item createGYearMonth (short aYear, short aMonth)=0
 Creates a gYearMonth Item see [http://www.w3.org/TR/xmlschema-2/#gYearMonth].
virtual Item createHexBinary (const char *aHexData, size_t aSize)=0
 Creates a HexBinary Item see [http://www.w3.org/TR/xmlschema-2/#hexBinary].
virtual Item createInt (int aInt)=0
 Creates a Int Item see [http://www.w3.org/TR/xmlschema-2/#int].
virtual Item createInteger (const String &aInteger)=0
 Creates an Integer Item see [http://www.w3.org/TR/xmlschema-2/#integer].
virtual Item createInteger (long long aInteger)=0
 Creates an Integer Item see [http://www.w3.org/TR/xmlschema-2/#integer].
virtual Item createLong (long long aLong)=0
 Creates a Long Item see [http://www.w3.org/TR/xmlschema-2/#long].
virtual Item createNCName (const String &aValue)=0
 Creates a NCName Item see [http://www.w3.org/TR/xmlschema-2/#NCName].
virtual Item createNegativeInteger (long long aValue)=0
 Creates a negativeInteger Item see [http://www.w3.org/TR/xmlschema-2/#negativeInteger].
virtual Item createNonNegativeInteger (unsigned long long aValue)=0
 Creates a nonNegativeInteger Item see [http://www.w3.org/TR/xmlschema-2/#nonNegativeInteger].
virtual Item createNonPositiveInteger (long long aValue)=0
 Creates a nonPositiveInteger Item see [http://www.w3.org/TR/xmlschema-2/#nonPositiveInteger].
virtual Item createPositiveInteger (unsigned long long aValue)=0
 Creates a positiveInteger\ Item see [http://www.w3.org/TR/xmlschema-2/#positiveInteger].
virtual Item createQName (const String &aNamespace, const String &aPrefix, const String &aLocalname)=0
 Creates a QName Item see [http://www.w3.org/TR/xmlschema-2/#QName].
virtual Item createQName (const String &aNamespace, const String &aLocalname)=0
 Creates a QName Item see [http://www.w3.org/TR/xmlschema-2/#QName].
virtual Item createQName (const String &aQNameString)=0
 Creates a QName Item see [http://www.w3.org/TR/xmlschema-2/#QName].
virtual Item createShort (short aShort)=0
 Creates a Short Item see [http://www.w3.org/TR/xmlschema-2/#short].
virtual Item createStreamableString (std::istream &stream, StreamReleaser streamReleaser, bool seekable=false)=0
 Creates a streamable String Item see [http://www.w3.org/TR/xmlschema-2/#string].
virtual Item createString (const String &aString)=0
 Creates a String Item see [http://www.w3.org/TR/xmlschema-2/#string].
virtual Item createTextNode (Item parent, String content)=0
 Create a new text node N and place it among the children of a given parent node.
virtual Item createTime (short aHour, short aMinute, double aSecond, short aTimeZone_hours)=0
 Creates a Time Item see [http://www.w3.org/TR/xmlschema-2/#time].
virtual Item createTime (short aHour, short aMinute, double aSecond)=0
 Creates a Time Item see [http://www.w3.org/TR/xmlschema-2/#time].
virtual Item createTime (const String &aValue)=0
 Creates a Time Item see [http://www.w3.org/TR/xmlschema-2/#time].
virtual Item createUnsignedByte (const unsigned char aValue)=0
 Creates an Unsigned Byte Item see [http://www.w3.org/TR/xmlschema-2/#unsignedByte].
virtual Item createUnsignedInt (unsigned int aValue)=0
 Creates an unsigned int Item see [http://www.w3.org/TR/xmlschema-2/#unsignedInt].
virtual Item createUnsignedLong (unsigned long long aValue)=0
 Creates an unsignedLong Item see [http://www.w3.org/TR/xmlschema-2/#unsignedLong].
virtual Item createUnsignedShort (unsigned short aValue)=0
 Creates a unsignedShort Item see [http://www.w3.org/TR/xmlschema-2/#unsignedShort].
virtual ~ItemFactory ()
 Destructor.

Detailed Description

ItemFactory to create Items.

An instance of this class can be obtained by calling getItemFactory on the Zorba object.

Each createXXX function of this class creates an Item of an XML Schema item. If an isNull() call on an Item created by one of these functions returns true the Item could not be created.

Examples:

context.cpp, and external_functions.cpp.

Definition at line 37 of file item_factory.h.


Constructor & Destructor Documentation

virtual zorba::ItemFactory::~ItemFactory ( ) [inline, virtual]

Destructor.

Definition at line 42 of file item_factory.h.


Member Function Documentation

virtual Item zorba::ItemFactory::createAnyURI ( const String aURI) [pure virtual]

Creates an AnyURI Item see [http://www.w3.org/TR/xmlschema-2/#anyURI].

Parameters:
aURIString representation of the AnyURI.
Returns:
The AnyURI Item.
virtual Item zorba::ItemFactory::createAttributeNode ( Item  aParent,
Item  aNodeName,
Item  aTypeName,
Item  aTypedValue 
) [pure virtual]

Create a new attribute node N and place it among the attributes of a given parent node.

If no parent is given, N becomes the root (and single node) of a new XML tree.

Parameters:
aParentThe parent P of the new node; may be NULL.
aNodeNameThe fully qualified name of the new node. The nemaspace binding implied by this name will be added to the namespaces of P. If the name prefix is "xml" and the local name is "base", then the base-uri property of P will be set or updated accordingly.
aTypeNameThe fully qualified name of the new node's type.
aTypedValueThe typed value of the new node.
Returns:
The new node N created by this method
virtual Item zorba::ItemFactory::createAttributeNode ( Item  aParent,
Item  aNodeName,
Item  aTypeName,
std::vector< Item aTypedValue 
) [pure virtual]
virtual Item zorba::ItemFactory::createBase64Binary ( const char *  aBinData,
size_t  aLength 
) [pure virtual]

Creates a Base64Binary Item see [http://www.w3.org/TR/xmlschema-2/#base64Binary].

Parameters:
aBinDataa pointer to the base64 binary data.
aLengththe length of the base64 binary data.
Returns:
The Base64Binary Item.
virtual Item zorba::ItemFactory::createBase64Binary ( std::istream &  aStream) [pure virtual]

Creates a Base64Binary Item see [http://www.w3.org/TR/xmlschema-2/#base64Binary].

Parameters:
aStreamA stream containing the Base64 encoded data.
Returns:
the Base64Binary Item.
virtual Item zorba::ItemFactory::createBase64Binary ( const unsigned char *  aBinData,
size_t  aLength 
) [pure virtual]

Creates a Base64Binary Item see [http://www.w3.org/TR/xmlschema-2/#base64Binary].

Parameters:
aBinDatathe data in binary form. The data is copied from aBinData.
aLengththe length of the data
Returns:
the Base64Binary Item.
virtual Item zorba::ItemFactory::createBoolean ( bool  aValue) [pure virtual]

Creates a Boolean Item see [http://www.w3.org/TR/xmlschema-2/#bool].

Parameters:
aValuebool representation of the Boolean.
Returns:
The Boolean Item.
virtual Item zorba::ItemFactory::createByte ( char  aByte) [pure virtual]

Creates a Byte Item see [http://www.w3.org/TR/xmlschema-2/#byte].

Parameters:
aBytechar representation of the Byte.
Returns:
The Byte Item.
virtual Item zorba::ItemFactory::createDate ( const String aDate) [pure virtual]

Creates a Date Item see [http://www.w3.org/TR/xmlschema-2/#date].

Parameters:
aDateString representation of the Date (e.g. 2002-10-10).
Returns:
The Date Item.
virtual Item zorba::ItemFactory::createDate ( short  aYear,
short  aMonth,
short  aDay 
) [pure virtual]

Creates a Date Item see [http://www.w3.org/TR/xmlschema-2/#date].

Parameters:
aYearshort-valued representation of the year.
aMonthshort-valued representation of the month.
aDayshort-valued representation of the day.
Returns:
The Date Item.
virtual Item zorba::ItemFactory::createDateTime ( short  aYear,
short  aMonth,
short  aDay,
short  aHour,
short  aMinute,
double  aSecond,
short  aTimeZone_hours 
) [pure virtual]

Creates a DateTime Item see [http://www.w3.org/TR/xmlschema-2/#dateTime].

Parameters:
aYearshort-valued representation of the year.
aMonthshort-valued representation of the month.
aDayshort-valued representation of the day.
aHourshort-valued representation of the hour.
aMinuteshort-valued representation of the minute.
aSeconddouble-valued representation of the seconds and fractional seconds.
aTimeZone_hoursshort-valued representation of the difference in hours to UTC.
Returns:
The DateTime Item.
Examples:
context.cpp.
virtual Item zorba::ItemFactory::createDateTime ( const String aDateTimeValue) [pure virtual]

Creates a DateTime Item see [http://www.w3.org/TR/xmlschema-2/#dateTime].

Parameters:
aDateTimeValueString representation of the datetime value (for example, 2002-10-10T12:00:00-05:00).
Returns:
The DateTime Item.
virtual Item zorba::ItemFactory::createDecimal ( const String aValue) [pure virtual]

Creates a Decimal Item see [http://www.w3.org/TR/xmlschema-2/#decimal].

Parameters:
aValueString representation of the Decimal (e.g. 12678967.543233).
Returns:
The Decimal Item.
virtual Item zorba::ItemFactory::createDecimalFromDouble ( double  aValue) [pure virtual]

Creates a Decimal Item see [http://www.w3.org/TR/xmlschema-2/#decimal].

Parameters:
aValuedouble representation of the Decimal.
Returns:
The Decimal Item.
virtual Item zorba::ItemFactory::createDecimalFromLong ( unsigned long  aValue) [pure virtual]

Creates a Decimal Item see [http://www.w3.org/TR/xmlschema-2/#decimal].

Parameters:
aValueunsigned long representation of the Decimal.
Returns:
The Decimal Item.
virtual Item zorba::ItemFactory::createDouble ( double  aValue) [pure virtual]

Creates a Double Item see [http://www.w3.org/TR/xmlschema-2/#double].

Parameters:
aValuedouble representation of the Double.
Returns:
The Double Item.
virtual Item zorba::ItemFactory::createDouble ( const String aValue) [pure virtual]

Creates a Double Item see [http://www.w3.org/TR/xmlschema-2/#double].

Parameters:
aValueString representation of the Double.
Returns:
The Double Item.
virtual Item zorba::ItemFactory::createDuration ( const String aValue) [pure virtual]

Creates a Duration Item see [http://www.w3.org/TR/xmlschema-2/#duration].

Parameters:
aValueString representation of the NCName.
Returns:
The Duration Item.
virtual Item zorba::ItemFactory::createDuration ( short  aYear,
short  aMonths,
short  aDays,
short  aHours,
short  aMinutes,
double  aSeconds 
) [pure virtual]

Creates a Duration Item see [http://www.w3.org/TR/xmlschema-2/#duration].

Parameters:
aYearshort-valued representation of the years.
aMonthsshort-valued representation of the months.
aDaysshort-valued representation of the days.
aHoursshort-valued representation of the hours.
aMinutesshort-valued representation of the minutes.
aSecondsdouble-valued representation of the seconds and fractional seconds.
Returns:
The Duration Item.
virtual Item zorba::ItemFactory::createElementNode ( Item aParent,
Item  aNodeName,
Item  aTypeName,
bool  aHasTypedValue,
bool  aHasEmptyValue,
std::vector< std::pair< String, String > >  aNsBindings 
) [pure virtual]

Creates a new element node.

Create a new element node N and place it at the end among the children of a given parent node. If no parent is given, N becomes the root (and single node) of a new XML tree.

Parameters:
aParentThe parent P of the new node; may be NULL.
aNodeNameThe fully qualified name of the new node.
aTypeNameThe fully qualified name of the new node's type. Not allowed to be NULL, use xsd:untyped instead.
aHasTypedValueWhether the node has a typed value or not (element nodes with complex type and element-only content do not have typed value).
aHasEmptyValueTrue if the typed value of the node is the empty sequence. This is the case if the element has a complex type with empty content.
aNsBindingsA set of namespace bindings. The namespaces property of N will be the union of this set and the namespaces property of P.
Returns:
The new node N created by this method
virtual Item zorba::ItemFactory::createFloat ( const String aValue) [pure virtual]

creates a float item see [http://www.w3.org/tr/xmlschema-2/#float]

Parameters:
aValuestring representation of the float.
Returns:
the float item.
virtual Item zorba::ItemFactory::createFloat ( float  aValue) [pure virtual]

creates a float item see [http://www.w3.org/tr/xmlschema-2/#float]

Parameters:
aValuefloat representation of the float.
Returns:
the float item.
virtual Item zorba::ItemFactory::createGDay ( short  aDay) [pure virtual]

Creates a gDay Item see [http://www.w3.org/TR/xmlschema-2/#gDay].

Parameters:
aDayshort representation of the gDay.
Returns:
The gDay Item.
virtual Item zorba::ItemFactory::createGDay ( const String aValue) [pure virtual]

Creates a gDay Item see [http://www.w3.org/TR/xmlschema-2/#gDay].

Parameters:
aValueString representation of the gDay.
Returns:
The gDay Item.
virtual Item zorba::ItemFactory::createGMonth ( const String aValue) [pure virtual]

Creates a gMonth Item see [http://www.w3.org/TR/xmlschema-2/#gMonth].

Parameters:
aValueString representation of the gMonth.
Returns:
The gMonth Item.
virtual Item zorba::ItemFactory::createGMonth ( short  aMonth) [pure virtual]

Creates a gMonth Item see [http://www.w3.org/TR/xmlschema-2/#gMonth].

Parameters:
aMonthshort representation of the gMonth.
Returns:
The gMonth Item.
virtual Item zorba::ItemFactory::createGMonthDay ( const String aValue) [pure virtual]

Creates a gMonthDay Item see [http://www.w3.org/TR/xmlschema-2/#gMonthDay].

Parameters:
aValueString representation of the gMonthDay.
Returns:
The gMonthDay Item.
virtual Item zorba::ItemFactory::createGMonthDay ( short  aMonth,
short  aDay 
) [pure virtual]

Creates a gMonthDay Item see [http://www.w3.org/TR/xmlschema-2/#gMonthDay].

Parameters:
aMonthshort representation of the month.
aDayshort representation of the day.
Returns:
The gMonthDay Item.
virtual Item zorba::ItemFactory::createGYear ( const String aValue) [pure virtual]

Creates a gYear Item see [http://www.w3.org/TR/xmlschema-2/#gYear].

Parameters:
aValueString representation of the gYear.
Returns:
The gYear Item.
virtual Item zorba::ItemFactory::createGYear ( short  aYear) [pure virtual]

Creates a gYear Item see [http://www.w3.org/TR/xmlschema-2/#gYear].

Parameters:
aYearshort representation of the gYear.
Returns:
The gYear Item.
virtual Item zorba::ItemFactory::createGYearMonth ( short  aYear,
short  aMonth 
) [pure virtual]

Creates a gYearMonth Item see [http://www.w3.org/TR/xmlschema-2/#gYearMonth].

Parameters:
aYearshort representation of the year.
aMonthshort representation of the month.
Returns:
The gYearMonth Item.
virtual Item zorba::ItemFactory::createGYearMonth ( const String aValue) [pure virtual]

Creates a gYearMonth Item see [http://www.w3.org/TR/xmlschema-2/#gYearMonth].

Parameters:
aValueString representation of the gYearMonth.
Returns:
The gYearMonth Item.
virtual Item zorba::ItemFactory::createHexBinary ( const char *  aHexData,
size_t  aSize 
) [pure virtual]

Creates a HexBinary Item see [http://www.w3.org/TR/xmlschema-2/#hexBinary].

Parameters:
aHexDatapointer to the hexdata.
aSizesize of the hexdata.
Returns:
The HexBinary Item.
virtual Item zorba::ItemFactory::createInt ( int  aInt) [pure virtual]

Creates a Int Item see [http://www.w3.org/TR/xmlschema-2/#int].

Parameters:
aIntint representation of the Int.
Returns:
The NCName Item.
virtual Item zorba::ItemFactory::createInteger ( const String aInteger) [pure virtual]

Creates an Integer Item see [http://www.w3.org/TR/xmlschema-2/#integer].

Parameters:
aIntegerString representation of the Integer.
Returns:
The Integer Item.
virtual Item zorba::ItemFactory::createInteger ( long long  aInteger) [pure virtual]

Creates an Integer Item see [http://www.w3.org/TR/xmlschema-2/#integer].

Parameters:
aIntegerunsigned long representation of the Integer.
Returns:
The Integer Item.
Examples:
context.cpp, and simple.cpp.
virtual Item zorba::ItemFactory::createLong ( long long  aLong) [pure virtual]

Creates a Long Item see [http://www.w3.org/TR/xmlschema-2/#long].

Parameters:
aLonglong long representation of the Long.
Returns:
The Long Item.
virtual Item zorba::ItemFactory::createNCName ( const String aValue) [pure virtual]

Creates a NCName Item see [http://www.w3.org/TR/xmlschema-2/#NCName].

Parameters:
aValueString representation of the NCName.
Returns:
The NCName Item.
virtual Item zorba::ItemFactory::createNegativeInteger ( long long  aValue) [pure virtual]

Creates a negativeInteger Item see [http://www.w3.org/TR/xmlschema-2/#negativeInteger].

Parameters:
aValuelong long representation of the negativeInteger.
Returns:
The negativeInteger Item.
virtual Item zorba::ItemFactory::createNonNegativeInteger ( unsigned long long  aValue) [pure virtual]

Creates a nonNegativeInteger Item see [http://www.w3.org/TR/xmlschema-2/#nonNegativeInteger].

Parameters:
aValueunsigned long representation of the nonNegativeInteger.
Returns:
The nonNegativeInteger Item.
virtual Item zorba::ItemFactory::createNonPositiveInteger ( long long  aValue) [pure virtual]

Creates a nonPositiveInteger Item see [http://www.w3.org/TR/xmlschema-2/#nonPositiveInteger].

Parameters:
aValuelong long representation of the NCName.
Returns:
The nonPositiveInteger Item.
virtual Item zorba::ItemFactory::createPositiveInteger ( unsigned long long  aValue) [pure virtual]

Creates a positiveInteger\ Item see [http://www.w3.org/TR/xmlschema-2/#positiveInteger].

Parameters:
aValueunsigned long representation of the positiveInteger.
Returns:
The positiveInteger Item.
virtual Item zorba::ItemFactory::createQName ( const String aNamespace,
const String aPrefix,
const String aLocalname 
) [pure virtual]

Creates a QName Item see [http://www.w3.org/TR/xmlschema-2/#QName].

Parameters:
aNamespaceString representation of the namespace.
aPrefixString representation of the prefix.
aLocalnameString representation of the localname.
Returns:
The QName Item.
Examples:
context.cpp, datamanager.cpp, and errors.cpp.
virtual Item zorba::ItemFactory::createQName ( const String aQNameString) [pure virtual]

Creates a QName Item see [http://www.w3.org/TR/xmlschema-2/#QName].

The QName is constructed by parsing the string using the notation invented by James Clark (i.e. {namespace}localname).

Parameters:
aQNameStringString in the QName notation by James Clark.
Returns:
The QName Item.
virtual Item zorba::ItemFactory::createQName ( const String aNamespace,
const String aLocalname 
) [pure virtual]

Creates a QName Item see [http://www.w3.org/TR/xmlschema-2/#QName].

Parameters:
aNamespaceString representation of the namespace.
aLocalnameString representation of the localname. *
Returns:
The QName Item.
virtual Item zorba::ItemFactory::createShort ( short  aShort) [pure virtual]

Creates a Short Item see [http://www.w3.org/TR/xmlschema-2/#short].

Parameters:
aShortshort representation of the Short.
Returns:
The Short Item.
virtual Item zorba::ItemFactory::createStreamableString ( std::istream &  stream,
StreamReleaser  streamReleaser,
bool  seekable = false 
) [pure virtual]

Creates a streamable String Item see [http://www.w3.org/TR/xmlschema-2/#string].

Parameters:
streamAn istream whence to read the string's content.
streamReleaserA function pointer which is invoked once the StreamableStringItem is destroyed. Normally this function will delete the std::istream object passed to it.
seekable
Returns:
The streamable String Item
virtual Item zorba::ItemFactory::createString ( const String aString) [pure virtual]

Creates a String Item see [http://www.w3.org/TR/xmlschema-2/#string].

Parameters:
aStringString representation of the String Item.
Returns:
The String Item
Examples:
datamanager.cpp.
virtual Item zorba::ItemFactory::createTextNode ( Item  parent,
String  content 
) [pure virtual]

Create a new text node N and place it among the children of a given parent node.

If no parent is given, N becomes the root (and single node) of a new XML tree.

Parameters:
parentThe parent P of the new node; may be NULL.
contentThe content of the new node.
Returns:
The new node N created by this method
virtual Item zorba::ItemFactory::createTime ( short  aHour,
short  aMinute,
double  aSecond,
short  aTimeZone_hours 
) [pure virtual]

Creates a Time Item see [http://www.w3.org/TR/xmlschema-2/#time].

Parameters:
aHourshort representation of the hour.
aMinuteshort representation of the minute.
aSeconddouble representation of the seconds and fractional seconds.
aTimeZone_hoursshort representation of the timezone difference in hours to UTC.
Returns:
The Time Item.
virtual Item zorba::ItemFactory::createTime ( const String aValue) [pure virtual]

Creates a Time Item see [http://www.w3.org/TR/xmlschema-2/#time].

Parameters:
aValueString representation of the Time.
Returns:
The Time Item
virtual Item zorba::ItemFactory::createTime ( short  aHour,
short  aMinute,
double  aSecond 
) [pure virtual]

Creates a Time Item see [http://www.w3.org/TR/xmlschema-2/#time].

Parameters:
aHourshort representation of the hour.
aMinuteshort representation of the minute.
aSeconddouble representation of the seconds and fractional seconds.
Returns:
The Time Item.
virtual Item zorba::ItemFactory::createUnsignedByte ( const unsigned char  aValue) [pure virtual]

Creates an Unsigned Byte Item see [http://www.w3.org/TR/xmlschema-2/#unsignedByte].

Parameters:
aValueunsignedByte unsigned char representation of the unsigned byte.
Returns:
The Unsigned Byte Item.
virtual Item zorba::ItemFactory::createUnsignedInt ( unsigned int  aValue) [pure virtual]

Creates an unsigned int Item see [http://www.w3.org/TR/xmlschema-2/#unsignedInt].

Parameters:
aValueunsigned int representation of the unsignedInt.
Returns:
The unsignedInt Item.
virtual Item zorba::ItemFactory::createUnsignedLong ( unsigned long long  aValue) [pure virtual]

Creates an unsignedLong Item see [http://www.w3.org/TR/xmlschema-2/#unsignedLong].

Parameters:
aValueunsignedLong long long representation of the unsignedLong.
Returns:
The unsignedLong Item.
virtual Item zorba::ItemFactory::createUnsignedShort ( unsigned short  aValue) [pure virtual]

Creates a unsignedShort Item see [http://www.w3.org/TR/xmlschema-2/#unsignedShort].

Parameters:
aValueunsigned short representation of the unsignedShort.
Returns:
The unsignedShort Item.

The documentation for this class was generated from the following file:
blog comments powered by Disqus