/**
 * @file
 * $Id$
 * $Revision$
 * $Author$
 * $Date$
 *
 * This file is part of The iWear Framework.
 * In particular this file is part of the iWear Database Access Library.
 *
 * The iWear Framework 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 as in version 2 of the License.

 * 
 * The iWear Framework 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
 * The iWear Framework; if not, write to the Free Software Foundation, Inc., 59
 * Temple Place, Suite 330, Boston, MA  02111-1307  USA
 */

#ifndef __WELDPOINT_H
#define __WELDPOINT_H

#ifndef __IWEAR_H
#include <iwear/iwear.h>
#endif

#ifndef __WELDPOINTPICTUREDATA_H
#include <iwear_dcag_mark_assistant/weldpointpicturedata.h>
#endif

#include <stdint.h>
#include <string>
#include <list>

using namespace std;

namespace iwear {
    namespace dcag {
	/**
	 * This class is a representation of the iwear dcag weldpoints.
	 */
	class Weldpoint
	{
	private:
	    uint32_t name;
	    string zb_number;
	    string subassembly;
	    list<WeldpointPictureData*> picture_data_list;
	    uint32_t ultrasonic_number;
	    bool is_marked;
   
	public:
	    Weldpoint(uint32_t name, string zb_number, string subassembly, 
		      list<WeldpointPictureData*> picture_data_list,
		      uint32_t ultrasonic_number = -1, bool is_marked = false);

	    virtual ~Weldpoint();
   
	    /***/
	    inline uint32_t get_name() { 
		return name; 
	    }

	    /***/
	    inline string get_zb_number() { 
		return zb_number; 
	    }

	    /***/
	    inline string get_subassembly() { 
		return subassembly; 
	    }

	    /***/
	    inline uint32_t get_ultrasonic_number() { 
		return ultrasonic_number; 
	    }

	    /***/
	    inline bool get_is_marked() { 
		return is_marked; 
	    }

	    /***/
	    inline void set_is_marked(bool status) { 
		is_marked = status; 
	    }

	    /***/
	    inline list<WeldpointPictureData*> get_picture_data_list() { 
		return picture_data_list; 
	    }

	    /***/
	    inline void add_picture_data(WeldpointPictureData* wppd) { 
		picture_data_list.push_back(wppd); 
	    }

	    /***/
	    inline bool operator==(Weldpoint* weldpoint) { 
		return this->name == weldpoint->name; 
	    }

	};
    } // namespace dcag
} // namespace iwear
#endif
