lcls2
C++ API: public headers of xtcdata, psalg, psdaq and psana
Loading...
Searching...
No Matches
DataDev Class Reference

Wraps a data_dev device so it can be automatically freed. More...

#include <GpuAsyncLib.hh>

Public Member Functions

 DataDev (const char *path)
 Open path for reading and writing; logs a critical message and aborts on failure.
 
 ~DataDev ()
 Close the file descriptor.
 
int fd () const
 Return the file descriptor.
 

Protected Attributes

int fd_
 

Detailed Description

Wraps a data_dev device so it can be automatically freed.

Constructor & Destructor Documentation

◆ DataDev()

DataDev::DataDev ( const char *  path)

Open path for reading and writing; logs a critical message and aborts on failure.

◆ ~DataDev()

DataDev::~DataDev ( )
inline

Close the file descriptor.

Member Function Documentation

◆ fd()

int DataDev::fd ( ) const
inline

Return the file descriptor.

Member Data Documentation

◆ fd_

int DataDev::fd_
protected

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