/*!
 * \file mg_listitem.h
 * \brief an item as delivered by mgSelection
 * \version $Revision: 1.0 $
 * \date    $Date: 2004-12-07 10:10:35 +0200 (Tue, 07 Dec 2004) $
 * \author  Wolfgang Rohdewald
 * \author  Responsible author: $Author: wr $
 *
 */

#ifndef _MG_LISTITEM_H
#define _MG_LISTITEM_H
#include <stdlib.h>
#include <string>

using namespace std;

class mgListItem
{
	public:
		mgListItem();
		mgListItem(string v,string i,unsigned int c=0);
		mgListItem* Clone();
		mgListItem(const mgListItem *from);
		void set(string v,string i,unsigned int c=0);
		void set_unique_id(string uid);
		void operator=(const mgListItem& from);
		void operator=(const mgListItem* from);
		bool operator==(const mgListItem& other) const;
		string value() const;
		string id() const;
		string unique_id() const;
		unsigned int count() const;
		bool valid() const;
	private:
		bool m_valid;
		string m_value;
		string m_id;
		string m_unique_id;
		unsigned int m_count;
};
#endif
