SOFA API  1a4bb3e7
Open source framework for multi-physics simuation
sofa::helper::system::DynamicLibrary::Handle Class Reference

#include <DynamicLibrary.h>

A handle to a dynamic library. More...

Detailed Description

A handle to a dynamic library.

Public Member Functions

 Handle ()
 Default constructor: invalid handle. More...
 
 Handle (const Handle &that)
 Copy constructor. More...
 
Handleoperator= (const Handle &other)
 Copy assignment. More...
 
bool isValid () const
 Check if the handle is valid, i.e. if load() was successful. More...
 
const std::string & filename () const
 Get the filename of the library. More...
 

Friends

class DynamicLibrary
 

Constructor details

◆ Handle() [1/2]

sofa::helper::system::DynamicLibrary::Handle::Handle ( )

Default constructor: invalid handle.

◆ Handle() [2/2]

sofa::helper::system::DynamicLibrary::Handle::Handle ( const Handle that)

Copy constructor.

Function details

◆ filename()

const std::string & sofa::helper::system::DynamicLibrary::Handle::filename ( ) const

Get the filename of the library.

◆ isValid()

bool sofa::helper::system::DynamicLibrary::Handle::isValid ( ) const

Check if the handle is valid, i.e. if load() was successful.

◆ operator=()

DynamicLibrary::Handle & sofa::helper::system::DynamicLibrary::Handle::operator= ( const Handle other)

Copy assignment.

Related details

◆ DynamicLibrary

friend class DynamicLibrary
friend