![]() |
FMS
v0.2
Field and Mesh Specification
|
FMS file I/O functions. More...
#include <fms.h>
Go to the source code of this file.
Functions | |
int | FmsIOWrite (const char *filename, const char *protocol, FmsDataCollection dc) |
Writes the provided FmsDataCollection to a file. More... | |
int | FmsIORead (const char *filename, const char *protocol, FmsDataCollection *dc) |
Reads an FmsDataCollection from a file. More... | |
int FmsIORead | ( | const char * | filename, |
const char * | protocol, | ||
FmsDataCollection * | dc | ||
) |
Reads an FmsDataCollection from a file.
filename | The name of the file to read. | |
protocol | The type of file to be read. By default, the protocol should be "ascii". If FMS is compiled with Conduit support then the protocol can match the supported Conduit protocols, which can include: "json", "yaml", "conduit_bin", "hdf5". Adding a protocol will help FMS and Conduit decide which method is appropriate for reading the file. If Conduit support is enabled and protocol is NULL an educated guess will be made for which protocol to use. | |
[out] | dc | The FMS object that was read from the file. |
Added in version: v0.2.
int FmsIOWrite | ( | const char * | filename, |
const char * | protocol, | ||
FmsDataCollection | dc | ||
) |
Writes the provided FmsDataCollection to a file.
filename | The name of the file to save. If the filename does not include an appropriate file extension, one may be added. |
protocol | The type of file to be saved. By default, the protocol should be "ascii". If FMS is compiled with Conduit support then the protocol can match the supported Conduit protocols, which can include: "json", "yaml", "conduit_bin", "hdf5". |
dc | The FMS object that will be written to the file. |
Added in version: v0.2.