gmsh-TingyuanDoc  0.1
An Open-Source Timing-driven Analytical Mixed-size FPGA Placer
CreateFile.h
Go to the documentation of this file.
1 // Gmsh - Copyright (C) 1997-2022 C. Geuzaine, J.-F. Remacle
2 //
3 // See the LICENSE.txt file in the Gmsh root directory for license information.
4 // Please report all issues on https://gitlab.onelab.info/gmsh/gmsh/issues.
5 
6 #ifndef CREATE_FILE_H
7 #define CREATE_FILE_H
8 
9 #include <string>
10 
11 int GetFileFormatFromExtension(const std::string &fileName,
12  double *version = nullptr);
13 int GuessFileFormatFromFileName(const std::string &fileName,
14  double *version = nullptr);
15 std::string GetDefaultFileExtension(int format, bool onlyMeshFormats = false);
16 std::string GetDefaultFileName(int format);
17 std::string GetKnownFileFormats(bool onlyMeshFormats = false);
18 void CreateOutputFile(const std::string &fileName, int format,
19  bool status = true);
20 
21 #endif
GetDefaultFileName
std::string GetDefaultFileName(int format)
Definition: CreateFile.cpp:165
CreateOutputFile
void CreateOutputFile(const std::string &fileName, int format, bool status=true)
Definition: CreateFile.cpp:290
GetDefaultFileExtension
std::string GetDefaultFileExtension(int format, bool onlyMeshFormats=false)
Definition: CreateFile.cpp:107
GuessFileFormatFromFileName
int GuessFileFormatFromFileName(const std::string &fileName, double *version=nullptr)
Definition: CreateFile.cpp:101
GetFileFormatFromExtension
int GetFileFormatFromExtension(const std::string &fileName, double *version=nullptr)
Definition: CreateFile.cpp:34
GetKnownFileFormats
std::string GetKnownFileFormats(bool onlyMeshFormats=false)
Definition: CreateFile.cpp:173