Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Alchemy Viewer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package registry
Operate
Terraform modules
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Silent mode is enabled
All outbound communications are blocked.
Learn more
.
Show more breadcrumbs
Alchemy Viewer
Alchemy Viewer
Commits
43611926
Commit
43611926
authored
8 years ago
by
Oz Linden
Browse files
Options
Downloads
Patches
Plain Diff
add convenience function ll_stream_notation_sd for compact representation of llsd
parent
ac10109d
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
indra/llcommon/llsdutil.cpp
+11
-0
11 additions, 0 deletions
indra/llcommon/llsdutil.cpp
indra/llcommon/llsdutil.h
+2
-0
2 additions, 0 deletions
indra/llcommon/llsdutil.h
with
13 additions
and
0 deletions
indra/llcommon/llsdutil.cpp
+
11
−
0
View file @
43611926
...
...
@@ -193,6 +193,17 @@ char* ll_pretty_print_sd(const LLSD& sd)
return
buffer
;
}
std
::
string
ll_stream_notation_sd
(
const
LLSD
&
sd
)
{
std
::
ostringstream
stream
;
//stream.rdbuf()->pubsetbuf(buffer, bufferSize);
stream
<<
LLSDOStreamer
<
LLSDNotationFormatter
>
(
sd
);
stream
<<
std
::
ends
;
return
stream
.
str
();
}
//compares the structure of an LLSD to a template LLSD and stores the
//"valid" values in a 3rd LLSD. Default values pulled from the template
//if the tested LLSD does not contain the key/value pair.
...
...
This diff is collapsed.
Click to expand it.
indra/llcommon/llsdutil.h
+
2
−
0
View file @
43611926
...
...
@@ -56,6 +56,8 @@ LL_COMMON_API char* ll_print_sd(const LLSD& sd);
LL_COMMON_API
char
*
ll_pretty_print_sd_ptr
(
const
LLSD
*
sd
);
LL_COMMON_API
char
*
ll_pretty_print_sd
(
const
LLSD
&
sd
);
LL_COMMON_API
std
::
string
ll_stream_notation_sd
(
const
LLSD
&
sd
);
//compares the structure of an LLSD to a template LLSD and stores the
//"valid" values in a 3rd LLSD. Default values
//are pulled from the template. Extra keys/values in the test
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment