Statistics
| Revision:

svn-gvsig-desktop / trunk / libraries / libjni-gdal / src / es / gva / cit / wrappergdal / Options.java @ 716

History | View | Annotate | Download (1.53 KB)

1
/**********************************************************************
2
 * $Id: Options.java 716 2004-12-28 14:07:11Z igbrotru $
3
 *
4
 * Name:     Options.java
5
 * Project:  JGDAL. Interface java to gdal (Frank Warmerdam).
6
 * Purpose:   
7
 * Author:   Nacho Brodin, brodin_ign@gva.es
8
 *
9
 **********************************************************************/
10
/*Copyright (C) 2004  Nacho Brodin <brodin_ign@gva.es>
11

12
 This program is free software; you can redistribute it and/or
13
 modify it under the terms of the GNU General Public License
14
 as published by the Free Software Foundation; either version 2
15
 of the License, or (at your option) any later version.
16

17
 This program is distributed in the hope that it will be useful,
18
 but WITHOUT ANY WARRANTY; without even the implied warranty of
19
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
20
 GNU General Public License for more details.
21

22
 You should have received a copy of the GNU General Public License
23
 along with this program; if not, write to the Free Software
24
 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
25
 */
26

    
27
package es.gva.cit.wrappergdal;
28

    
29

    
30
public class Options{
31
        
32
        String[] vars;
33
        String[] datos;
34
        int longitud;
35
        int nopc;
36
        
37
        /**
38
         *
39
         */
40
        
41
           public Options(int nopciones){
42
                   vars=new String[nopciones];
43
                   datos=new String[nopciones];
44
                   longitud=nopciones;
45
                   nopc=0;
46
           }
47
        
48
           /**
49
            * 
50
            */
51
           
52
           public void addOption(String var, String dato){
53
                   vars[nopc]=var;
54
                datos[nopc]=dato;
55
                nopc++;
56
           }
57
           
58
           /**
59
            * 
60
            */
61
           public int getSize(){
62
                   return longitud;
63
           }
64
 }