Class: TFileRange

Declaration: FileSystemInterface.h

Taxonomy Categories:

Member Functions:


Interface Category:

API.

Inherits From:

None.

Inherited By:

None.

Purpose:

Specifies some part of a file. Consists of an offset and a length.

Instantiation:

Allocate on the heap or the stack.

Deriving Classes:

Do not derive from this class.

Concurrency:

Not multithread safe.

Resource Use:

No special requirements.

Member Function: TFileRange::SetLength

void SetLength (FileSystemEntitySize length)

Interface Category:

API.

Purpose:

Sets the length of the file range.

Calling Context:

Call this function directly.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe. This handle class is not safe. The master it refers to is.

Other Considerations:

None.

Member Function: TFileRange::SetOffset

void SetOffset (FileSystemEntitySize offset)

Interface Category:

API.

Purpose:

Sets the offset of the file range.

Calling Context:

Call this function directly.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe. This handle class is not safe. The master it refers to is.

Other Considerations:

None.

Member Function: TFileRange::GetLength

FileSystemEntitySize GetLength () const

Interface Category:

API.

Purpose:

Returns the length of the file range.

Calling Context:

Call this function directly.

Parameters:

Return Value:

The length of the file range.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe. This handle class is not safe. The master it refers to is.

Other Considerations:

None.

Member Function: TFileRange::GetOffset

FileSystemEntitySize GetOffset () const

Interface Category:

API.

Purpose:

Returns the offset of the file range.

Calling Context:

Call this function directly.

Parameters:

Return Value:

The offset of the file range.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe. This handle class is not safe. The master it refers to is.

Other Considerations:

None.

Member Function: TFileRange::operator<<=

TStream & operator <<= (TStream & fromWhere)

Interface Category:

API.

Purpose:

Stream-in operator.

Calling Context:

Called to stream in data.

Parameters:

Return Value:

Returns a reference to the stream the object streams itself in from.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe. This handle class is not safe. The master it refers to is.

Other Considerations:

None.

Member Function: TFileRange::operator>>=

TStream & operator >>=(TStream & toWhere) const

Interface Category:

API.

Purpose:

Stream-out operator.

Calling Context:

Call this function directly.

Parameters:

Return Value:

Returns a reference to the stream the object streams itself out to.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe. This handle class is not safe. The master it refers to is.

Other Considerations:

None.

Member Function: TFileRange::operator==

bool operator ==(const TFileRange & compareMe)

Interface Category:

API.

Purpose:

Tests equality of TFileRange objects.

Calling Context:

Call this function directly.

Parameters:

Return Value:

Returns true if this and compareMe are equal.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe. This handle class is not safe. The master it refers to is.

Other Considerations:

None.

Member Function: TFileRange::operator=

TFileRange & operator =(const TFileRange & copy)

Interface Category:

API.

Purpose:

Assignment operator.

Calling Context:

Called when an object is assigned to another compatible object.

Parameters:

Return Value:

A non-const reference to the left-hand side object.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe. This handle class is not safe. The master it refers to is.

Other Considerations:

None.

Member Function: TFileRange::~TFileRange

~ TFileRange ()

Interface Category:

API.

Purpose:

Destructor.

Calling Context:

Called to destroy an object.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe. This handle class is not safe. The master it refers to is.

Other Considerations:

None.

Member Function: TFileRange::TFileRange

  1. TFileRange (const TFileRange & copyMe)
  2. TFileRange (FileSystemEntitySize offset, FileSystemEntitySize length)
  3. TFileRange ()

Interface Category:

API.

Purpose:

  1. Copy constructor.
  2. Constructs a TFileRange from an offset and a length.
  3. Default constructor.

Calling Context:

  1. Called to copy an object.
  2. Call this function directly.
  3. Called by the stream-in operators, and for later assignment.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe. This handle class is not safe. The master it refers to is.

Other Considerations:

None.
Click the icon to mail questions or corrections about this material to Taligent personnel.
Copyright©1995 Taligent,Inc. All rights reserved.