#ifndef swsProduct_19980901jhl_h
#define swsProduct_19980901jhl_h

// static char Idswsproduct_h[] =
// "$Id: swsproduct.h_v 1.1 1998/10/24 23:41:38 jhl Exp jhl $";

/*  

   Copyright (C) 1998  James H. Lowe, Jr.  <jhl@richmond.infi.net>

*/

/*
//
//  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.  
*/

#include "swstruct_i.h"
#include "swstruct_i.h"
#include "swsnode.h"
#include "swexstruct.h"
#include "swexproduct.h"

class swsProduct: public swsNode {

public:
    swsProduct (void);
    virtual ~swsProduct (void);
    static swsProduct * make_swstructure(void);

    int doProcess(swExStruct * swexdist)
    {
	//swExStruct * product = swExProduct::make_swexstruct(this);
	//int ret = doProcess_node_bh(swexdist, product);
	int ret  = 0;
	return ret;
	//ret = swsNode::doProcess(product);
    	//list = product->getThisStorageList(swexdist);
	//list->list_add(product);
	//return ret;
    }
    
    char * determineFilesControlDirectory(void)
    {
	swDefinition * swdef = swsnodeGetDistribution()->get_swdefinition();
	char * pfiles = swdef->find("pfiles");
	if (pfiles)
		return pfiles;
	else
		return "pfiles";
    }
};
#endif
