ost::DSO(3)
πΈ ost::DSO π β the dynamic loader glow-up
okay bestie, sit down, hydrate, because we're talking about ost::DSO, aka the DSO dynamic loader class which is literally the thing you use to load object files. yes, that DSO. it lives in the Library Functions Manual section 3 (iykyk) π
β¨ NAME β¨
ost::DSO β the DSO dynamic loader class, and she's used to load object files. periodt.
π¦ SYNOPSIS π¦
#include <file.h>
π Public Member Functions
DSO(const char *filename) β Construct and load a DSO object file. (the classic)DSO(const char *filename,bool resolve) β the sequel constructor π«Άconst char * getError(void) β Retrieve error indicator associated with DSO failure.virtual ~DSO() β Detach a DSO object from running memory. she's leaving, bye πvoid * operator[](const char *sym) β Lookup a symbol in the loaded file.bool isValid(void) β See if DSO object is valid.
π Static Public Member Functions
static void dynunload(void)static DSO * getObject(const char *name) β Find a specific DSO object by filename.static void setDebug(void) β Install debug handler...
π DETAILED DESCRIPTION π
The DSO dynamic loader class is used to load object files. that's the whole vibe.
On elf based systems this is typically done with dlopen. And on systems that aren't dl capable? a dummy stub class gets generated instead. so she's adaptable, we love a flexible queen π
Author
- David Sugar β
dyfet@ostel.com
Dynamic class file loader. that's her rΓ©sumΓ©, that's the whole bio β¨
π§ CONSTRUCTOR & DESTRUCTOR DOCUMENTATION π§
πΈ ost::DSO::DSO (const char * filename) [inline]
Construct and load a DSO object file.
Parameters
filenameβ pathname of object file to load.
πΈ ost::DSO::DSO (const char * filename, bool resolve) [inline]
(no description given, she's mysterious like that π)
πΈ virtual ost::DSO::~DSO () [virtual]
Detach a DSO object from running memory.
this is the goodbye moment bestie, the DSO is being detached from running memory. give her a moment π
β MEMBER FUNCTION DOCUMENTATION β
π static void ost::DSO::dynunload (void) [static]
(no description, she's just out here doing her job π )
π const char* ost::DSO::getError (void) [inline]
Retrieve error indicator associated with DSO failure. This is often used in catch handlers. so when everything's going wrong and you're catching the fallout, this is your girl π«Ά
π static DSO* ost::DSO::getObject (const char * name) [static]
Find a specific DSO object by filename.
Parameters
nameβ of DSO object file (partial).
note the partial β you don't need the whole filename, just enough to find her π₯
π bool ost::DSO::isValid (void)
See if DSO object is valid.
Returns
trueif valid.
a vibe check, essentially. true = valid, iconic. π
π void* ost::DSO::operator[] (const char * sym)
Lookup a symbol in the loaded file.
π static void ost::DSO::setDebug (void) [static]
Install debug handler...
the ... is literally in the original, she trails off, she's enigmatic, we respect it π
π AUTHOR π
Generated automatically by Doxygen for GNU CommonC++ from the source code.
and that's the whole page, bestie π fr fr no cap β this was generated automatically by Doxygen for GNU CommonC++ from the source code, dated Sun Dec 27 2020, and that's your GNU CommonC++ sign-off. slay, go load some object files responsibly πβ¨π
π¦ where this page comes from
- ubuntu jammy: libcommoncpp2-doc 1.8.1-10
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms