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

#include <xltdl.hh>

Collaboration diagram for vcsn::detail::xlt_advise:

Public Member Functions

 xlt_advise ()
 
 ~xlt_advise ()
 
xlt_adviseglobal (bool global)
 
xlt_adviseext ()
 
xlt_adviseverbose (int v)
 Whether to report dlopen attempts. More...
 
const file_librarypath () const noexcept
 
file_librarypath () noexcept
 
xlt_advisepath (const file_library &p) noexcept
 
xlt_handle open (const std::string &s)
 

Static Public Member Functions

template<typename... Args>
static ATTRIBUTE_NORETURN void raise (Args &&... args)
 Throw an exception, or exit with exit_status_ if nonnull. More...
 

Private Member Functions

lt_dlhandle dlopen_ (const file_library::path &s) const
 Does not use the search path. Can return 0. More...
 

Private Attributes

lt_dladvise advise_
 
file_library path_
 
int verbose_ = 0
 

Detailed Description

Definition at line 17 of file xltdl.hh.

Constructor & Destructor Documentation

◆ xlt_advise()

vcsn::detail::xlt_advise::xlt_advise ( )

Definition at line 29 of file xltdl.cc.

References advise_.

◆ ~xlt_advise()

vcsn::detail::xlt_advise::~xlt_advise ( )

Definition at line 38 of file xltdl.cc.

References advise_.

Member Function Documentation

◆ dlopen_()

lt_dlhandle vcsn::detail::xlt_advise::dlopen_ ( const file_library::path s) const
private

Does not use the search path. Can return 0.

Definition at line 89 of file xltdl.cc.

References advise_, vcsn::res, and verbose_.

Referenced by open(), and raise().

◆ ext()

xlt_advise & vcsn::detail::xlt_advise::ext ( )

Definition at line 55 of file xltdl.cc.

References advise_.

Referenced by vcsn::detail::xlt_openext().

◆ global()

xlt_advise & vcsn::detail::xlt_advise::global ( bool  global)

Definition at line 46 of file xltdl.cc.

References advise_.

Referenced by vcsn::detail::xlt_openext().

◆ open()

xlt_handle vcsn::detail::xlt_advise::open ( const std::string &  s)

Definition at line 105 of file xltdl.cc.

References dlopen_(), path(), path_, vcsn::res, and vcsn::file_library::search_path_get().

Referenced by vcsn::detail::xlt_openext().

Here is the call graph for this function:

◆ path() [1/3]

const file_library & vcsn::detail::xlt_advise::path ( ) const
noexcept

Definition at line 70 of file xltdl.cc.

References path_.

Referenced by open().

◆ path() [2/3]

file_library & vcsn::detail::xlt_advise::path ( )
noexcept

Definition at line 76 of file xltdl.cc.

References path_.

◆ path() [3/3]

xlt_advise & vcsn::detail::xlt_advise::path ( const file_library p)
noexcept

Definition at line 82 of file xltdl.cc.

References path_.

◆ raise()

template<typename... Args>
static ATTRIBUTE_NORETURN void vcsn::detail::xlt_advise::raise ( Args &&...  args)
inlinestatic

Throw an exception, or exit with exit_status_ if nonnull.

Definition at line 37 of file xltdl.hh.

References dlopen_(), and vcsn::raise().

Here is the call graph for this function:

◆ verbose()

xlt_advise & vcsn::detail::xlt_advise::verbose ( int  v)

Whether to report dlopen attempts.

Definition at line 63 of file xltdl.cc.

References vcsn::detail::v, and verbose_.

Member Data Documentation

◆ advise_

lt_dladvise vcsn::detail::xlt_advise::advise_
private

Definition at line 46 of file xltdl.hh.

Referenced by dlopen_(), ext(), global(), xlt_advise(), and ~xlt_advise().

◆ path_

file_library vcsn::detail::xlt_advise::path_
private

Definition at line 47 of file xltdl.hh.

Referenced by open(), and path().

◆ verbose_

int vcsn::detail::xlt_advise::verbose_ = 0
private

Definition at line 48 of file xltdl.hh.

Referenced by dlopen_(), and verbose().


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