Skip to content
Snippets Groups Projects
Commit 49e5f7b8 authored by Laurent Van Migroet's avatar Laurent Van Migroet
Browse files

Add readLUA for reading lua from API (dependance on "bindings.h" in GMOdelIO_Mesh)

parent 9a0647e1
Branches
Tags
No related merge requests found
...@@ -566,6 +566,8 @@ class GModel ...@@ -566,6 +566,8 @@ class GModel
int writeINP(const std::string &name, bool saveAll=false, int writeINP(const std::string &name, bool saveAll=false,
double scalingFactor=1.0); double scalingFactor=1.0);
int readLUA(const std::string &name);
void save(std::string fileName); void save(std::string fileName);
void load(std::string fileName); void load(std::string fileName);
......
...@@ -31,6 +31,7 @@ ...@@ -31,6 +31,7 @@
#include "MVertexPositionSet.h" #include "MVertexPositionSet.h"
#include "Context.h" #include "Context.h"
#include "OS.h" #include "OS.h"
#include "bindings.h"
#if defined(HAVE_POST) #if defined(HAVE_POST)
#include "PView.h" #include "PView.h"
...@@ -3212,7 +3213,11 @@ int GModel::readDIFF(const std::string &name) ...@@ -3212,7 +3213,11 @@ int GModel::readDIFF(const std::string &name)
fclose(fp); fclose(fp);
return 1; return 1;
} }
int GModel::readLUA(const std::string &name)
{
int status = binding::instance()->readFile(name.c_str());
return status;
}
int GModel::writeDIFF(const std::string &name, bool binary, bool saveAll, int GModel::writeDIFF(const std::string &name, bool binary, bool saveAll,
double scalingFactor) double scalingFactor)
{ {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment