windows-nt/Source/XPSP1/NT/base/fs/utils/ufat/inc/reloclus.hxx
2020-09-26 16:20:57 +08:00

88 lines
1.3 KiB
C++
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*++
Copyright (c) 1990 Microsoft Corporation
Module Name:
reloclus.hxx
Abstract:
This modules contains the declaration of the RELOCATION_CLUSTER
class. A relocation cluster is a cluster that will be relocated
somewhere else.
Author:
Ramon J. San Andres (ramonsa) 05-Nov-1991
--*/
#if !defined( _RELOCATION_CLUSTER_ )
#define _RELOCATION_CLUSTER_
DECLARE_CLASS( RELOCATION_CLUSTER);
class RELOCATION_CLUSTER : public OBJECT {
public:
DECLARE_CONSTRUCTOR( RELOCATION_CLUSTER );
DECLARE_CAST_MEMBER_FUNCTION( RELOCATION_CLUSTER );
VIRTUAL
~RELOCATION_CLUSTER(
);
NONVIRTUAL
BOOLEAN
Initialize (
IN ULONG ClusterNumber
);
VIRTUAL
LONG
Compare (
IN PCOBJECT Object
) CONST;
NONVIRTUAL
ULONG
QueryClusterNumber (
) CONST;
private:
ULONG _Cluster; // Cluster
};
INLINE
ULONG
RELOCATION_CLUSTER::QueryClusterNumber (
) CONST
/*++
Routine Description:
Obtains the cluster number of this relocation cluster
Arguments:
None.
Return Value:
ULONG - cluster number
--*/
{
return _Cluster;
}
#endif // _RELOCATION_CLUSTER_