forked from ComputationalRadiationPhysics/picongpu
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Plugins: Common String Helpers (Splash)
Adds ArrayOfString helpers for libSplash write calls. See ComputationalRadiationPhysics/libSplash#220 for the description of the problem. If a user wants to write an array of strings they need to be padded to the longest one. This helper does that. Use it like this: ```C++ // [...] helper::GetSplashArrayOfString getSplashArrayOfString; helper::GetSplashArrayOfString::Result myArrOfStr; std::list<std::string> myListOfStr; myListOfStr.push_back("short"); myListOfStr.push_back("middle"); myListOfStr.push_back("loooong"); myArrOfStr = getSplashArrayOfString( myListOfStr ); ``` Also adds a `helper::` namespace to avoid polluting the `PIConGPU` namespace.
- Loading branch information
Showing
1 changed file
with
89 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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