Pylon Logo Basler Logo
Public Member Functions | List of all members
Pylon::AccessModeSet Class Reference

Collection of access mode bits. More...

#include <pylon/DeviceAccessMode.h>

Public Member Functions

 AccessModeSet (void)
 Default constructor creates an empty set.
 
 AccessModeSet (EDeviceAccessMode am)
 Converts an access mode into a set.
 
 AccessModeSet (const AccessModeSet &ams)
 Copy constructor.
 
AccessModeSetset (size_t pos)
 Sets the bit at position pos. More...
 
AccessModeSetreset ()
 Resets all bits to zero. More...
 
bool any () const
 Returns whether any of the bits is set (i.e., whether at least one bit in the AccessModeSet is set to one). More...
 
bool none () const
 Returns whether any of the bits is set (i.e., whether at least one bit in the AccessModeSet is set to one). More...
 
bool test (size_t pos) const
 Returns whether the bit at position pos is set (i.e., whether it is one). More...
 
unsigned long to_ulong () const
 Returns an unsigned long with the integer value that has the same bits set as the AccessModeSet. More...
 

Detailed Description

Collection of access mode bits.

Used for defining how a device is accessed.

Low Level API:
This set is used when a device is opened. The combination of different access modes specifies how the device is opened. Not all combinations may be allowed because the device implementations have certain restrictions.
if (a.test( Exclusive ))
{
// Exclusive implies Control access, so set it also
a |= Control;
}
See also
The method of IDevice::Open() uses it to define a default value.
The global operator |( EDeviceAccessMode lhs, EDeviceAccessMode rhs ) allows to combine two modes to a set.

The documentation for this class was generated from the following file:

pylon 6.1.0
Copyright (c) 2006-2020 Basler AG (Mon Mar 16 2020 10:56:57)