zorba-coders team mailing list archive
-
zorba-coders team
-
Mailing list archive
-
Message #06735
[Bug 907070] Re: Item API needs operator<<
** Changed in: zorba
Milestone: 2.2 => 2.5
--
You received this bug notification because you are a member of Zorba
Coders, which is the registrant for Zorba.
https://bugs.launchpad.net/bugs/907070
Title:
Item API needs operator<<
Status in Zorba - The XQuery Processor:
In Progress
Bug description:
To emit the string value of an Item to an ostream, you currently have
to use getStringValue() or getStringValue2(). This is inefficient
since a string that is otherwise not needed needs to be created.
Instead, there should be a global operator<< defined:
std::ostream& operator<<( std::ostream&, store::Item const& );
Its implementation could simply call a new protected, pure virtual
member function for Item:
virtual void emit( std::ostream& ) const = 0;
To manage notifications about this bug go to:
https://bugs.launchpad.net/zorba/+bug/907070/+subscriptions
References