Skip to content
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

Wrap resource concept. #27

Open
ben-crowhurst opened this issue Nov 8, 2016 · 0 comments
Open

Wrap resource concept. #27

ben-crowhurst opened this issue Nov 8, 2016 · 0 comments
Labels

Comments

@ben-crowhurst
Copy link
Member

ben-crowhurst commented Nov 8, 2016

Currently we move resource data around via a std::multimap. This has worked to date however we are finding lots of duplicated String::to_string/to_bytes, find... calls.

Reduce duplication with a light-weight wrapper.

Resource resource( const std::multimap< std::string, std::string >& values );
resource.set( "name", string or bytes value );
resource.get( "name" ); //returning string or bytes value.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant