Vcsn  2.8
Be Rational
vcsn::detail::xlt_handle Class Reference

#include <xltdl.hh>

Collaboration diagram for vcsn::detail::xlt_handle:

Public Member Functions

 xlt_handle (lt_dlhandle h=nullptr)
 
 ~xlt_handle ()
 
void close ()
 Close the handle. More...
 
void detach ()
 Detach so that destruction does not close. More...
 
void attach (lt_dlhandle h)
 Detach so that destruction does not close. More...
 
template<typename T >
sym (const std::string &s)
 Wrapper around lt_dlsym that exits on failures. More...
 

Public Attributes

lt_dlhandle handle
 The handle. More...
 

Detailed Description

Definition at line 52 of file xltdl.hh.

Constructor & Destructor Documentation

◆ xlt_handle()

vcsn::detail::xlt_handle::xlt_handle ( lt_dlhandle  h = nullptr)

Definition at line 131 of file xltdl.cc.

◆ ~xlt_handle()

vcsn::detail::xlt_handle::~xlt_handle ( )

Definition at line 135 of file xltdl.cc.

Member Function Documentation

◆ attach()

void vcsn::detail::xlt_handle::attach ( lt_dlhandle  h)

Detach so that destruction does not close.

Definition at line 165 of file xltdl.cc.

References handle.

◆ close()

void vcsn::detail::xlt_handle::close ( )

Close the handle.

Definition at line 146 of file xltdl.cc.

References handle.

◆ detach()

void vcsn::detail::xlt_handle::detach ( )

Detach so that destruction does not close.

Definition at line 158 of file xltdl.cc.

References handle.

◆ sym()

template<typename T >
T vcsn::detail::xlt_handle::sym ( const std::string &  s)
inline

Wrapper around lt_dlsym that exits on failures.

Definition at line 69 of file xltdl.hh.

References vcsn::res.

Member Data Documentation

◆ handle

lt_dlhandle vcsn::detail::xlt_handle::handle

The handle.

Exposed, as currently we don't cover the whole lt_ interface.

Definition at line 80 of file xltdl.hh.

Referenced by attach(), close(), and detach().


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