org.keridwen.modelling.gmsh.templates
Class TemplateParser
java.lang.Object
org.keridwen.modelling.gmsh.templates.TemplateParser
public class TemplateParser
- extends Object
This class parses Gmsh .geo file looking for declared Variable
s. It then allows replacing the
Variable
values as well as saving them in a new file.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TemplateParser
public TemplateParser()
readTemplate
public Template readTemplate(File geoTemplate)
throws IOException
- Gets the list of
Variable
s stored in the given .geo template file.
- Parameters:
geoTemplate
- the input file
- Returns:
- the
Template
- Throws:
IOException
- if an error occurs while reading the file
generatedGeoFileFromTemplate
public void generatedGeoFileFromTemplate(Template source,
File fileToWrite)
throws IOException
- Parameters:
source
- fileToWrite
-
- Throws:
IOException
Copyright © 2012-2013 Artenum. All Rights Reserved.