blob: fdf11784dd7fc93d4f6f870fef7d30a3653e4df3 (
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
42
|
/*! -*- c++ -*-
* \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
|