[Zorba-coders] [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 -- 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
[Zorba-coders] [Bug 907070] Re: Item API needs operator
** Changed in: zorba Status: New = In Progress -- 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 -- 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
[Zorba-coders] [Bug 907070] Re: Item API needs operator
** Changed in: zorba Importance: Undecided = Low -- 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
[Zorba-coders] [Bug 907070] Re: Item API needs operator
** Branch linked: lp:~paul-lucas/zorba/bug-907070 -- 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
[Zorba-coders] [Bug 907070] Re: Item API needs operator
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
[Zorba-coders] [Bug 907070] Re: Item API needs operator
** Changed in: zorba Milestone: None = 2.2 -- 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