com.jstatcom.engine.gauss
Class GCGSet

java.lang.Object
  extended by com.jstatcom.engine.gauss.GCGSet

public final class GCGSet
extends java.lang.Object

This class stores information to compile a GAUSS gcg file from the source files.

Author:
Markus Kraetzig

Nested Class Summary
static class GCGSet.SRCFile
          Innter class that stores an src file.
 
Field Summary
 java.lang.String GCG_NAME
           
static javolution.xml.XmlFormat<GCGSet> GCGSet_XML
          XML format field for (de)serialization.
 java.lang.String LIBS
           
 
Constructor Summary
GCGSet(java.lang.String gcgName, java.lang.String libraries)
          Creates a GCGSet with then name of the compiled file.
 
Method Summary
 void addSRCFile(java.lang.String fileName)
          Adds an src file to the list.
 java.util.Iterator iterator()
          Gets a list iterator for all source file names.
static void main(java.lang.String[] args)
          Compiles a GAUSS gcg file from source files according to the settings for GaussEngine.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

GCG_NAME

public final java.lang.String GCG_NAME

LIBS

public final java.lang.String LIBS

GCGSet_XML

public static final javolution.xml.XmlFormat<GCGSet> GCGSet_XML
XML format field for (de)serialization.

Constructor Detail

GCGSet

public GCGSet(java.lang.String gcgName,
              java.lang.String libraries)
Creates a GCGSet with then name of the compiled file.

Parameters:
gcgName - the name of the output file (without path) *
libraries - comma separated libraries to load before calling compile
Throws:
java.lang.RuntimeException - if (gcgName == null)
Method Detail

addSRCFile

public void addSRCFile(java.lang.String fileName)
Adds an src file to the list.

Parameters:
fileName - the src file to add
Throws:
java.lang.RuntimeException - if the sourcefile does not exist
java.lang.IllegalArgumentException - if (fileName == null)

iterator

public java.util.Iterator iterator()
Gets a list iterator for all source file names. The order from the XML representation is preserved.

Returns:
an iterator

main

public static void main(java.lang.String[] args)
Compiles a GAUSS gcg file from source files according to the settings for GaussEngine.

Parameters:
args - this is ignored