comet::uuid_t Class Reference
[Com type wrappers.]

UUID wrapper. More...

#include <uuid_fwd.h>

List of all members.

Public Member Functions

 uuid_t ()
 Default constructor - constructs a nil uuid.
 uuid_t (const COMET_GUID_BASE &u)
 Copy constructor.
uuid_toperator= (const COMET_GUID_BASE &u)
 Assignment operator.
void clear ()
 Set to nil uuid.
unsigned short hash () const
 Returns hash of uuid.
bool is_null () const throw ()
 Returns true if and only if uuid is nil.
bool operator! () const throw ()
 Returns true if and only if uuid is nil.
template<typename C> void copy_to_str (C s[]) const throw ()
 Copy the uuid_t to a string/container.
template<typename C> bool init_from_str (const C s[], size_t len) throw ()
 Initialise the uuid_t from a string/container.
long cmp (const comet::uuid_t &rhs) const
 Compare two guids.
bool is_equal (const comet::uuid_t &rhs) const
 Compare two guids for equality.
 operator bool_tester * () const throw ()
Construct uuid from string
 uuid_t (const std::string &s)
 uuid_t (const char *s)
 uuid_t (const std::wstring &s)
 uuid_t (const wchar_t *s)
 uuid_t (const bstr_t &bs)
std::string str () const
 Return a std::string version of the uuid.
std::string s_str () const
 Return a std::string version of the uuid.
std::wstring w_str () const
 Return a std::wstring version of the uuid.
tstring t_str () const
 Return a tstring (templated to TCHAR) version of the uuid.
Methods for converting uuid to raw GUID when calling raw COM functions or legacy code.
COMET_GUID_BASE * out ()
COMET_GUID_BASE * inout ()
COMET_GUID_BASE in () const
COMET_GUID_BASE * in_ptr () const

Static Public Member Functions

uuid_t create ()
 Generate new guid.
const int * uuid_table ()
const char * hex_table ()
const char * err_msg ()
int parse_nibble (int c)
const uuid_tcreate_const_reference (const COMET_GUID_BASE &x)
 Construct const reference to uuid from a raw GUID.
uuid_tcreate_reference (COMET_GUID_BASE &x)
 Construct reference to uuid from a raw GUID.

Friends

overloads for output/input to/from streams
template<class E, class TR> std::basic_ostream< E, TR > & operator<< (std::basic_ostream< E, TR > &os, const uuid_t &u)
 Output to an ostream.
template<class E, class TR> std::basic_istream< E, TR > & operator>> (std::basic_istream< E, TR > &is, uuid_t &u)
 Input from an ostream.

Related Functions

(Note that these are not member functions.)

comparison operators
bool operator== (const comet::uuid_t &lhs, const comet::uuid_t &rhs)
bool operator!= (const comet::uuid_t &lhs, const comet::uuid_t &rhs)
bool operator== (const comet::uuid_t &lhs, const COMET_GUID_BASE &rhs)
bool operator!= (const comet::uuid_t &lhs, const COMET_GUID_BASE &rhs)
bool operator== (const COMET_GUID_BASE &lhs, const comet::uuid_t &rhs)
bool operator!= (const COMET_GUID_BASE &lhs, const comet::uuid_t &rhs)
bool operator< (const comet::uuid_t &lhs, const comet::uuid_t &rhs)
bool operator< (const comet::uuid_t &lhs, const COMET_GUID_BASE &rhs)
bool operator< (const COMET_GUID_BASE &lhs, const comet::uuid_t &rhs)
bool operator>= (const comet::uuid_t &lhs, const comet::uuid_t &rhs)
bool operator>= (const comet::uuid_t &lhs, const COMET_GUID_BASE &rhs)
bool operator>= (const COMET_GUID_BASE &lhs, const comet::uuid_t &rhs)
bool operator> (const comet::uuid_t &lhs, const comet::uuid_t &rhs)
bool operator> (const comet::uuid_t &lhs, const COMET_GUID_BASE &rhs)
bool operator> (const COMET_GUID_BASE &lhs, const comet::uuid_t &rhs)
bool operator<= (const comet::uuid_t &lhs, const comet::uuid_t &rhs)
bool operator<= (const comet::uuid_t &lhs, const COMET_GUID_BASE &rhs)
bool operator<= (const COMET_GUID_BASE &lhs, const comet::uuid_t &rhs)


Detailed Description

UUID wrapper.


Friends And Related Function Documentation

bool operator!= const COMET_GUID_BASE &  lhs,
const comet::uuid_t rhs
[related]
 

Inequality operator.

bool operator!= const comet::uuid_t lhs,
const COMET_GUID_BASE &  rhs
[related]
 

Inequality operator.

bool operator!= const comet::uuid_t lhs,
const comet::uuid_t rhs
[related]
 

Inequality operator.

bool operator< const COMET_GUID_BASE &  lhs,
const comet::uuid_t rhs
[related]
 

Less-than operator.

bool operator< const comet::uuid_t lhs,
const COMET_GUID_BASE &  rhs
[related]
 

Less-than operator.

bool operator< const comet::uuid_t lhs,
const comet::uuid_t rhs
[related]
 

Less-than operator.

template<class E, class TR>
std::basic_ostream< E, TR > & operator<< std::basic_ostream< E, TR > &  os,
const uuid_t u
[friend]
 

Output to an ostream.

Output to an ostream.

bool operator<= const COMET_GUID_BASE &  lhs,
const comet::uuid_t rhs
[related]
 

Less-than-equals operator.

bool operator<= const comet::uuid_t lhs,
const COMET_GUID_BASE &  rhs
[related]
 

Less-than-equals operator.

bool operator<= const comet::uuid_t lhs,
const comet::uuid_t rhs
[related]
 

Less-than-equals operator.

bool operator== const COMET_GUID_BASE &  lhs,
const comet::uuid_t rhs
[related]
 

Equals operator.

bool operator== const comet::uuid_t lhs,
const COMET_GUID_BASE &  rhs
[related]
 

Equals operator.

bool operator== const comet::uuid_t lhs,
const comet::uuid_t rhs
[related]
 

Equals operator.

bool operator> const COMET_GUID_BASE &  lhs,
const comet::uuid_t rhs
[related]
 

Greater-than operator.

bool operator> const comet::uuid_t lhs,
const COMET_GUID_BASE &  rhs
[related]
 

Greater-than operator.

bool operator> const comet::uuid_t lhs,
const comet::uuid_t rhs
[related]
 

Greater-than operator.

bool operator>= const COMET_GUID_BASE &  lhs,
const comet::uuid_t rhs
[related]
 

Greater-than-equals operator.

bool operator>= const comet::uuid_t lhs,
const COMET_GUID_BASE &  rhs
[related]
 

Greater-than-equals operator.

bool operator>= const comet::uuid_t lhs,
const comet::uuid_t rhs
[related]
 

Greater-than-equals operator.

template<class E, class TR>
std::basic_istream< E, TR > & operator>> std::basic_istream< E, TR > &  is,
comet::uuid_t u
[friend]
 

Input from an ostream.

Input from an istream.


The documentation for this class was generated from the following files: