ost::DSO(3)

πŸ“¦ version 1.8.1, in ubuntu jammy

🌸 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

  • true if 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