LibraryLink Utilities  3.0.1
Modern C++ wrapper over LibraryLink and WSTP
LLU::SharePolicy Struct Reference

Description

Base class for shared access policies on Windows.

Library users are encouraged to provide their own derived classes if needed. Implemented also on Mac and Linux to have uniform interface but does not make much sense on those platforms.

+ Inheritance diagram for LLU::SharePolicy:

#include <FileUtilities.h>

Public Member Functions

virtual int flag (std::ios::openmode) const
 Base share policy - shared read access when file opened readonly, exclusive access otherwise. More...
 

Member Function Documentation

◆ flag()

int LLU::SharePolicy::flag ( std::ios::openmode  ) const
virtual

Base share policy - shared read access when file opened readonly, exclusive access otherwise.

Returns
_SH_SECURED on Windows and 0 on other platforms where it is not used anyway

Reimplemented in LLU::AlwaysReadExclusiveWrite.