/* swindex.h
 */

/*
 * Copyright (C) 1998  James H. Lowe, Jr.  <jhlowe@acm.org>
 *
 * COPYING TERMS AND CONDITIONS
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2, or (at your option)
 * any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  
 */


#ifndef swindex_19980516jhl_h
#define swindex_19960516jhl_h

#include "swdefinitionfile.h"

class swINDEX: public swDefinitionFile 
{

public:
      
       swINDEX(void);
       swINDEX(char * path);
       swINDEX(char * path, int fd);
       ~swINDEX(void);
       char * getObjectName(void) { return SW_A_INDEX; }
       int get_type (void);

// int 
// swdeffile_linki_write_fd(int fd) {
// 	int ret=0;
// 	int eret;
// 	swDefinition *swmd = swdeffile_linki_get_head();
// 	// fprintf(stderr, "JL here in swindex linki_write_fd\n");
// 	while (swmd) {
// 		eret = swmd->write_fd(fd); 
// 		if (eret<0) return -ret;
// 		ret+=eret; 
// 		swmd = swmd->get_next();
// 	}
// 	return ret;
// }

private:

//       void setup_object1 (void);


};

#endif

