FEDEM Model Database  R8.0
Source code of the FEDEM model database
FmModelLoader.H
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: 2023 SAP SE
2 //
3 // SPDX-License-Identifier: Apache-2.0
4 //
5 // This file is part of FEDEM - https://openfedem.org
7 
13 #ifndef FM_MODEL_LOADER_H
14 #define FM_MODEL_LOADER_H
15 
16 #include <string>
17 
18 
19 namespace Fedem
20 {
26  int loadTemplate(const std::string& newName,
27  const std::string& defaultName = "",
28  bool writeLogFile = false);
29 
34  int loadModel(const std::string& name,
35  const std::string& logName,
36  char ignoreFileVersion = 0);
37 
40  bool loadParts(bool forceLoad = false);
41 }
42 
43 #endif
FEDEM model database utilities.
Definition: FmCreate.H:36
int loadTemplate(const std::string &newName, const std::string &defaultName="", bool writeLogFile=false)
Reads a model file to be used as template for a new, empty model.
Definition: FmModelLoader.C:25
int loadModel(const std::string &name, const std::string &logName, char ignoreFileVersion=0)
Reads a model file into a new model.
Definition: FmModelLoader.C:72
bool loadParts(bool forceLoad=false)
Reads all part data files, unless they are already loaded.
Definition: FmModelLoader.C:135