Function strings_spec (o2scl_hdf)¶
-
template<class
vec_t
>
into2scl_hdf
::
strings_spec
(std::string spec, vec_t &v, int verbose = 0, bool err_on_fail = true)¶ Specification of several strings.
The specification types are:
list: list of comma separated entries
shell: read all lines output from a shell command
python: read all lines output from a python command
pattern: create a list of strings from a pattern using [0], [a], and [A]
hdf5: From an HDF5 file using type string or string[]
This function is used for the acol slack command.
- Note
Previous strings in
v
are left unchanged and new strings are just added to the end.- Warning
Experimental.