/*
 * Author:
 *         Kendy Kutzner <kutzner@ira.uka.de>
 *
 * (c) 2005 Research Group Dr. Fuhrmann, University of Karlsruhe, Germany
 * All rights reserved.
 *
 * $Id: serviceid.h,v 1.6 2005/11/21 10:46:57 kutzner Exp $
 *
 */

#ifndef _SERVICID_H_
#define _SERVICID_H_

#include "id.h"

#include <string>
using namespace std;


class serviceid : public id {
	public:
		serviceid(){::id();}
		// why does serviceid(string n){::id(s);} compile????
		serviceid(string n){parseid(n);}
		bool operator<(const serviceid &other) const;
};


/*
class serviceid {
	public:
		serviceid(){_valid = false;}
		serviceid(string);
		string tostring();
		bool operator<(serviceid other) const {if (_serviceid < other._serviceid) return true ; else return false;};
		// bool operator<(serviceid &other){if (_serviceid < other._serviceid) return true ; else return false;}
		// bool operator<(serviceid *other){if (_serviceid < other->_serviceid) return true ; else return false;}
	private:
		int _serviceid;
		bool _valid;
};
*/


#endif // _SERVICID_H_
