gec.gctparser
Class GctParser

java.lang.Object
  extended by gec.gctparser.GctParser

public class GctParser
extends java.lang.Object

Parses a resource using the list generated by the resinst -list command (capture the output using Kermit). Each line represents a data item. It is of the form: [999.999.999] TYPE1 path : TYPE2 = value ; where TYPE1 is the type of VAR: INPUT OUTPUT INTERNAL REFERENCE path is the dotted path from the top level block to the variable TYPE2 is the variable type, eg REAL, BOOL, DINT ... value is the value of the variable This list of variables is then used to generate the SQL commands to insert the items into the database, as will as an aif file to set all the variables.

Author:
bburch

Constructor Summary
GctParser(java.lang.String resourceList, java.lang.String aifFileName, java.lang.String csvFileName)
          Null Constructor.
 
Method Summary
static void main(java.lang.String[] args)
          The main program.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GctParser

public GctParser(java.lang.String resourceList,
                 java.lang.String aifFileName,
                 java.lang.String csvFileName)
Null Constructor.

Parameters:
resourceList - String - the path to the resource list file.
aifFileName - String - path to aif file name, or null
csvFileName - String - path to csv file name, or null
Method Detail

main

public static void main(java.lang.String[] args)
The main program.

Parameters:
args - String[] : 0: optional filename of the the Resource