Serialbox  2.2.0
Data serialization library and tools for C/C++, Python and Fortran
Archive methods
SERIALBOX_API serialboxArrayOfString_tserialboxArchiveGetRegisteredArchives (void)
 Get an array of C-strings of all registered archives. More...
 
SERIALBOX_API char * serialboxArchiveGetArchiveFromExtension (const char *filename)
 Deduce the name of the archive according to the extension of the filename More...
 

Detailed Description

Function Documentation

◆ serialboxArchiveGetArchiveFromExtension()

SERIALBOX_API char* serialboxArchiveGetArchiveFromExtension ( const char *  filename)

Deduce the name of the archive according to the extension of the filename

Extensions Archives
.dat, .bin Binary
.nc NetCDF
Parameters
filenamePath or name of the file
Returns
C-String of the archive or NULL if an error occured

Definition at line 38 of file Archive.cpp.

◆ serialboxArchiveGetRegisteredArchives()

SERIALBOX_API serialboxArrayOfString_t* serialboxArchiveGetRegisteredArchives ( void  )

Get an array of C-strings of all registered archives.

The function will allocate a sufficiently large array of char*. Each element (as well as the array itself) needs to be freed by the user using free().

Returns
Array of C-strings with the names of all registered archives

Definition at line 21 of file Archive.cpp.