Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

75 lines
1.7 KiB

//-----------------------------------------------------------------------------
//
// File: uniqid.h
// Copyright (C) 1994-1997 Microsoft Corporation
// All rights reserved.
//
// What we use to uniquely identify a localizable item.
//
//-----------------------------------------------------------------------------
#ifndef UNIQID_H
#define UNIQID_H
#pragma warning(disable: 4275) // non dll-interface class 'foo' used
// as base for dll-interface class 'bar'
class LTAPIENTRY CLocUniqueId : public CObject
{
public:
NOTHROW CLocUniqueId();
void AssertValid(void) const;
NOTHROW const DBID & GetParentId(void) const;
NOTHROW const CLocTypeId & GetTypeId(void) const;
NOTHROW const CLocResId & GetResId(void) const;
NOTHROW DBID & GetParentId(void);
NOTHROW CLocTypeId & GetTypeId(void);
NOTHROW CLocResId & GetResId(void);
void GetDisplayableUniqueId(CPascalString &) const;
NOTHROW int operator==(const CLocUniqueId &) const;
NOTHROW int operator!=(const CLocUniqueId &) const;
const CLocUniqueId &operator=(const CLocUniqueId&);
void SetParentId(const DBID&);
NOTHROW void ClearId(void);
NOTHROW BOOL IsNull();
virtual ~CLocUniqueId();
protected:
//
// Implementation functions.
//
NOTHROW BOOL IsEqualTo(const CLocUniqueId &) const;
private:
//
// Prevents the default copy constructor from being called.
//
CLocUniqueId(const CLocUniqueId &);
void Serialize(CArchive &ar);
DBID m_dbid;
CLocTypeId m_tid;
CLocResId m_rid;
DEBUGONLY(static CCounter m_DisplayCounter);
};
#pragma warning(default: 4275)
#if !defined(_DEBUG) || defined(IMPLEMENT)
#include "uniqid.inl"
#endif
#endif // UNIQID_H