org.keridwen.modelling.gmsh.templates
Class TemplateParser

java.lang.Object
  extended by org.keridwen.modelling.gmsh.templates.TemplateParser

public class TemplateParser
extends Object

This class parses Gmsh .geo file looking for declared Variables. It then allows replacing the Variable values as well as saving them in a new file.


Constructor Summary
TemplateParser()
           
 
Method Summary
 void generatedGeoFileFromTemplate(Template source, File fileToWrite)
           
 Template readTemplate(File geoTemplate)
          Gets the list of Variables stored in the given .geo template file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TemplateParser

public TemplateParser()
Method Detail

readTemplate

public Template readTemplate(File geoTemplate)
                      throws IOException
Gets the list of Variables 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.