ENSDF++ 1.1
An easy, fast and simple way to run querys towards the ENSDF database, written in C++.
Public Member Functions | Private Attributes
IndataParameters Class Reference

List of all members.

Public Member Functions

String getFilename ()
boolean getSectionSpecified ()
NuclideSquare getSection ()
ArrayList< RGBVectorgetRGBVectorList ()
ArrayList< String > getJIsotopeFiles ()
 IndataParameters (String[] args)

Private Attributes

String filename
boolean sectionSpecified
NuclideSquare section
ArrayList< RGBVectorrgbVectorList
ArrayList< String > isotopeFiles

Detailed Description

Definition at line 173 of file NuclideChart.java.


Constructor & Destructor Documentation

IndataParameters::IndataParameters ( String[]  args) [inline]

<Point to next position to parse.

Definition at line 187 of file NuclideChart.java.

    {
        rgbVectorList = new ArrayList<RGBVector>();
        isotopeFiles = new ArrayList<String>();

        filename = args[0];
        int ptr = 1; 

        if (args[ptr].equalsIgnoreCase("-n"))
            {
                sectionSpecified = true;
                ptr=6;
                section = new NuclideSquare();
                try
                    {
                        section.bottomLeftZ = Integer.parseInt(args[2]);
                        section.bottomLeftA = Integer.parseInt(args[3]);
                        section.upperRightZ = Integer.parseInt(args[4]);
                        section.upperRightA = Integer.parseInt(args[5]);
                    }
                catch(NumberFormatException ex)
                    {
                        System.out.println("Error in parsing limits.");
                        System.exit(1);
                    }
            }
        else
            {
                sectionSpecified = false;
            }

        for (int i=ptr; i < args.length; i=i+4) //Var fjärde härifrån är en xxx.txt-fil
            {
                isotopeFiles.add(args[i]);
            }
        
        for (int i=ptr+1; i < args.length; i=i+4) //överväg i+4
            {
                int r, g, b;
                try
                    {
                        rgbVectorList.add(new RGBVector(Integer.parseInt(args[i]),Integer.parseInt(args[i+1]),Integer.parseInt(args[i+2])));
                    }
                catch(NumberFormatException ex)
                    {
                        System.out.println("Error in parsing rgb vectors.");
                        System.exit(1);
                    }
            }
        
    }

The documentation for this class was generated from the following file:
 All Classes Files Functions Variables Enumerations Enumerator Defines

Back to the main page of the Precalibrated Ion Beam Identification Detector project

Created by Rikard Lundmark