SOFA API  c76874b7
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

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

Default constructor: invalid handle.

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

Copy constructor.

Function details

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

Get the filename of the library.

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

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

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

Copy assignment.

Related details

friend class DynamicLibrary
friend