1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
|
// Gmsh - Copyright (C) 1997-2021 C. Geuzaine, J.-F. Remacle
//
// See the LICENSE.txt file for license information. Please report all
// issues on https://gitlab.onelab.info/gmsh/gmsh/issues.
#ifndef CREATE_FILE_H
#define CREATE_FILE_H
#include <string>
int GetFileFormatFromExtension(const std::string &fileName,
double *version = nullptr);
int GuessFileFormatFromFileName(const std::string &fileName,
double *version = nullptr);
std::string GetDefaultFileExtension(int format, bool onlyMeshFormats = false);
std::string GetDefaultFileName(int format);
std::string GetKnownFileFormats(bool onlyMeshFormats = false);
void CreateOutputFile(const std::string &fileName, int format,
bool status = true);
#endif
|