ISimilarityTraitsMappedView interface (msrdc.h)
Provides methods that an RDC application can implement for manipulating a mapped view of a similarity traits table file.
This interface is used together with the ISimilarityTraitsMapping interface to allow the application to provide the I/O services needed by the ISimilarityTraitsTable and ISimilarity interfaces. The implementation model is based on memory mapped files, but the interface is rich enough to support other models as well, such as memory-only arrays or traditional file accesses.
A mapped view is used to map an area of the entire file into a contiguous block of memory. This mapping is valid until the view is changed or unmapped. A possible implementation would call the ReadFile function when the view is mapped (see the Get method), and would then write the changes back to disk when the view is changed (see Get) or released (see the Unmap method).
There can be multiple overlapping read-only mapped views of the same area of a file, and one or more read-only views can overlap a read/write view, but there can be only one read/write view of a given area of a file.
Inheritance
The ISimilarityTraitsMappedView interface inherits from the IUnknown interface. ISimilarityTraitsMappedView also has these types of members:
Methods
The ISimilarityTraitsMappedView interface has these methods.
ISimilarityTraitsMappedView::Flush Writes to the disk any dirty pages within a mapped view of a similarity traits table file. |
ISimilarityTraitsMappedView::Get Returns information about the mapped view of a similarity traits table file. |
ISimilarityTraitsMappedView::GetView Returns the beginning and ending addresses for the mapped view of a similarity traits table file. |
ISimilarityTraitsMappedView::Unmap Unmaps a mapped view of a similarity traits table file. |
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows Vista |
Minimum supported server | Windows Server 2008 |
Target Platform | Windows |
Header | msrdc.h |