summaryrefslogtreecommitdiff
path: root/mg_listitem.h
blob: ada27d14bde8998aca3410ece0216a1e40e22532 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
/*!
 * \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 operator=(const mgListItem& from);
		void operator=(const mgListItem* from);
		bool operator==(const mgListItem& other) const;
		string value() const;
		string id() const;
		unsigned int count() const;
		bool valid() const;
	private:
		bool m_valid;
		string m_value;
		string m_id;
		unsigned int m_count;
};

#endif