Cuid

File : <Cuid.h>

A Cuid object represent an Unique IDentifier in the scope of an EULER application. This class have been developped for increasing tag comparaison whithout using enum types. All Cuid objects initialized whith the same string are identical and they sharred the same constant memory for the string. The comparaison operators does not consider the string, and does not respect the ascii alpha-numerical order. The string could be recovered by using the
(const char *) cast operator.

class Cuid

Construction/destruction - public members

	Cuid()
	Cuid( const Cuid& an_id )
	Cuid( const char* str )

Status/Information - Public Members

	bool empty() const

operations - public members

	Cuid& operator=( const Cuid& an_id )
	Cuid& operator=( const char* str )	
	bool operator==( const Cuid& an_id ) const
	bool operator==( const char* str ) const
	bool operator!=( const Cuid& an_id ) const
	bool operator!=( const char* str ) const
	bool operator<( const Cuid& an_id ) const
	bool operator>( const Cuid& an_id ) const
	bool operator<=( const Cuid& an_id ) const
	bool operator>=( const Cuid& an_id ) const
	operator const char*() const


Copyright © 1999 TCTS LAB, Faculté Polytechnique de Mons, Belgium