-
Notifications
You must be signed in to change notification settings - Fork 12
Integrated UDA-Plugins api listFilledPaths #41
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
Open
deepakmaroo
wants to merge
4
commits into
iterorganization:develop
Choose a base branch
from
deepakmaroo:list-filled-paths-udabackend
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
9f311c4
Integrated UDA-Plugins api listFilledPaths
deepakmaroo a1fece2
Added al_utilities and function to convert vector of strings into a C…
deepakmaroo 1f557dd
Added al_utilities and function to convert vector of strings into a C…
deepakmaroo 31d5a79
Apply suggestion from @maarten-ic
deepakmaroo File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,24 @@ | ||
| #ifndef AL_UTILITIES_H | ||
| #define AL_UTILITIES_H | ||
|
|
||
| /** | ||
| * General-purpose utility functions for the Access Layer. | ||
| */ | ||
|
|
||
| #include <vector> | ||
| #include <string> | ||
|
|
||
| namespace utilities { | ||
|
|
||
| /** | ||
| * Convert a vector of strings into a C-style array of strings. | ||
| * | ||
| * @param paths the vector of strings to convert | ||
| * @param path_list a pointer to the C-style array to create | ||
| * @param size a pointer to an integer to store the size of the created array | ||
| */ | ||
| void copy_stringvector_to_c_list(const std::vector<std::string>& paths, char*** path_list, int* size); | ||
|
|
||
| } // namespace utilities | ||
|
|
||
| #endif // AL_UTILITIES_H | ||
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| #include "al_utilities.h" | ||
|
|
||
| #include <cstdlib> | ||
| #include <cstring> | ||
|
|
||
| namespace utilities { | ||
|
|
||
| void copy_stringvector_to_c_list(const std::vector<std::string>& paths, char*** path_list, int* size) { | ||
| *size = static_cast<int>(paths.size()); | ||
olivhoenen marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| if (*size == 0) { | ||
| *path_list = nullptr; | ||
| return; | ||
| } | ||
|
|
||
| *path_list = static_cast<char**>(malloc(*size * sizeof(char*))); | ||
| for (int i = 0; i < *size; ++i) { | ||
| (*path_list)[i] = strdup(paths[i].c_str()); | ||
| } | ||
| } | ||
| } // namespace utilities | ||
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
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.