|
void | filename_ascii (String &filename, const String &varname) |
| Gives the default file name for the ASCII formats. More...
|
|
void | open_output_file (ofstream &file, const String &name) |
| Open a file for writing. More...
|
|
void | open_input_file (ifstream &file, const String &name) |
| Open a file for reading. More...
|
|
void | read_text_from_stream (ArrayOfString &text, istream &is) |
| Read an ASCII stream and append the contents to the String array text. More...
|
|
void | read_text_from_file (ArrayOfString &text, const String &name) |
| Reads an ASCII file and appends the contents to the String vector text. More...
|
|
void | replace_all (String &s, const String &what, const String &with) |
| Replace all occurances of ‘what’ in ‘s’ with ‘with’. More...
|
|
void | write_array_of_matrix_to_stream (ostream &os, const ArrayOfMatrix &am) |
| A helper function that writes an array of matrix to a stream. More...
|
|
void | write_array_of_matrix_to_file (const String &filename, const ArrayOfMatrix &am) |
| A helper function that writes an array of matrix to a file. More...
|
|
void | skip_comments (istream &is) |
| A helper function that skips lines containing comments. More...
|
|
void | read_array_of_matrix_from_stream (ArrayOfMatrix &am, istream &is) |
| A helper function that reads an array of matrix from a stream. More...
|
|
void | read_array_of_matrix_from_file (ArrayOfMatrix &am, const String &filename) |
| A helper function that reads an array of matrix from a file. More...
|
|
void | write_array_of_String_to_stream (ostream &os, const ArrayOfString &as) |
| A helper function that writes an array of String to a stream. More...
|
|
void | write_array_of_String_to_file (const String &filename, const ArrayOfString &as) |
| A help function that writes an array of String to a file. More...
|
|
void | read_array_of_String_from_stream (ArrayOfString &as, istream &is) |
| A help function to read an array of String from a stream. More...
|
|
void | read_array_of_String_from_file (ArrayOfString &as, const String &filename) |
| A help function to read an array of String from a file. More...
|
|
void | write_tag_groups_species_to_stream (ostream &os, const TagGroups &tgs) |
| A helper function that writes an array of String to a stream. More...
|
|
void | write_tag_groups_species_to_file (const String &filename, const TagGroups &tgs) |
| A help function that writes an array of String to a file. More...
|
|
This file contains basic functions to handle ASCII data files.
- Author
- Patrick Eriksson
- Date
- 2000-10-28
Definition in file file.cc.
void write_array_of_matrix_to_stream |
( |
ostream & |
os, |
|
|
const ArrayOfMatrix & |
am |
|
) |
| |
A helper function that writes an array of matrix to a stream.
This is the generic output function for Vectors, Matrixs, and ArrayOf both. All these are converted first to ArrayOfMatrix, and then written by this function.
- Parameters
-
os | Output. The stream to write to. |
am | The matrix to write. |
- Author
- Stefan Buehler
Definition at line 268 of file file.cc.