I like the suggestion. However, the function should probably be called
emitStringValue in order to make it clear what the exact semantics is.

** Changed in: zorba
     Assignee: Matthias Brantner (matthias-brantner) => Paul J. Lucas 
(paul-lucas)

-- 
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:
  New

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

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to     : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp

Reply via email to