///////////////////////////////////////////////////////////////////////////////
-// Name: ole/uuid.h
+// Name: wx/msw/ole/uuid.h
// Purpose: encapsulates an UUID with some added helper functions
// Author: Vadim Zeitlin
// Modified by:
// Created: 11.07.97
-// RCS-ID: $Id$
// Copyright: (c) 1998 Vadim Zeitlin <zeitlin@dptmaths.ens-cachan.fr>
// Licence: wxWindows licence
//
#ifndef _WX_OLEUUID_H
#define _WX_OLEUUID_H
-#include "wx/wxchar.h"
+#include "wx/chartype.h"
// ------------------------------------------------------------------
// UUID (Universally Unique IDentifier) definition
// ------------------------------------------------------------------
// ------------------------------------------------------------------
// uses RPC functions to create/convert Universally Unique Identifiers
-class WXDLLEXPORT Uuid
+class WXDLLIMPEXP_CORE Uuid
{
private:
UUID m_uuid;
bool Set(const wxChar *pc); // from a string, returns true if ok
void Set(const UUID& uuid); // from another UUID (never fails)
+ // comparison operators
+ bool operator==(const Uuid& uuid) const;
+ bool operator!=(const Uuid& uuid) const { return !(*this == uuid); }
+
// accessors
operator const UUID*() const { return &m_uuid; }
operator const wxChar*() const { return (wxChar *)(m_pszUuid); }