-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Provide actions for text-based streamers #580
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
In most cases it should be same actions like for binary I/O, but several special cases will be implemented. Also in such list original (not-compressed) list of data members will be used. This will solve problem of unfolding such compressed members later
Main difference - it is not-optimized list, therefore there is no need to unfold compressed data members
When such classes stored, class streamer called directly. Such approach does not work with text storage, therefore special actions required.
When TObject instance was stored as is, wrong output was produced. Now UniqueID, fBits and process ID stored normally
Required for special handling of kStreamerLoop members. Special case when empty arrays should be stored - binary I/O completely ignores such containers, but text representaion need normal array structure arround nulls
isText boolean parameter let provide customization for text-based streaming. Potentially same action can be used for binary I/O
It should be handled as normal array.
Just reuse postprocessing code for TObject. Makes output more readable, but TRef need much more work to be supported with JSON and JSROOT
In original code direct class streamer is called, which is impossible to handle with TBufferJSON. Keep binary code as well in the action to have possibility use same code-base for binary use-case
|
Starting build on |
|
Build failed on mac1012/native. Warnings:
|
Member
|
@phsft-bot build with flags -Dhttp=ON |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Improved variant of PR #578
Idea to create separate actions list, which will be used only for text-based streaming.
Most actions functions can be reused from normal I/O,
only several cases should be implemented slightly different.
On the long run one could create complimentary actions list for reading data with TBufferXML or TBufferSQL2 and fully isolate text-based and binary I/O
That is in PR:
PR solves several existing problem with JSON:
With provided code all my test classes working. I can provide patch for roottest.
P.S. Most probably, Travis-CI check will be unhappy about source-code formatting.