Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
otb
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Antoine Belvire
otb
Commits
b03eb0dc
Commit
b03eb0dc
authored
9 years ago
by
Rashad Kanavath
Browse files
Options
Downloads
Patches
Plain Diff
DOC: add errmsg parameter into inline docs
parent
bd2bf249
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Modules/Adapters/BoostAdapters/include/otbStringUtils.h
+3
-4
3 additions, 4 deletions
Modules/Adapters/BoostAdapters/include/otbStringUtils.h
with
3 additions
and
4 deletions
Modules/Adapters/BoostAdapters/include/otbStringUtils.h
+
3
−
4
View file @
b03eb0dc
...
...
@@ -48,8 +48,9 @@ T LexicalCast(std::string const& in, std::string const& kind) {
/**\ingroup Utils
* - convert a delimitter seperated string to std::vector of type T
* \tparam vec - std::vector of type T.
Specialized boost::lexical_cast is used
* \tparam vec - std::vector of type T.
* \tparam str - input string
* \terrmsg - a msg to be shown if there is lexical_cast exception.
* \tparam delims - delimitter space is default
* \t param T& ret - std::vector of type T
*/
...
...
@@ -74,14 +75,12 @@ SplitStringToSingleKeyValue - split a given std::string of into key value based
on given delimitter string. default delimitter is '='. If the string doesnot
have a delimitter the key is set to input string and value is set to defValue.
This function is templated over value type. It uses specialized
boost::lexical_cast if the T is not of type std::string. only primitive types
Arugments are:
str - reference to input string of type std::string
key - reference to std::string where key will be stored
value - reference to T where value will be stored
defValue - default value if there is no delimitter found. (informally TRUE)
errmsg - a msg to be shown if there is lexical_cast exception.
delims - const std::string which contains the delimtter used. Default is '='
doTrim - option to perform boost::trim() over key and values. Default is true.
*/
...
...
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