Arcade architecture
main.cpp File Reference

Entry point for the libFoo library. More...

#include <iostream>
#include <unistd.h>
#include "arcade_sdl2.hpp"
#include "LoaderType.hpp"
Include dependency graph for main.cpp:

Functions

IDisplayModulegetClass (void)
 Factory function to create an instance of libFoo. More...
 
Loader::ModuleType_t getModuleType (void)
 
 __attribute__ ((constructor)) void const ruct()
 
 __attribute__ ((destructor)) void deconstruct()
 

Detailed Description

Entry point for the libFoo library.

This file contains the implementation of the getClass function which returns an instance of the libFoo class.

Author
roussierenoa
Date
3/17/25

Function Documentation

◆ getClass()

IDisplayModule * getClass ( void  )

Factory function to create an instance of libFoo.

This function is used to create and return a new instance of the libFoo class. It is intended to be used as an entry point for dynamic loading of the library.

Returns
IDisplayModule* Pointer to the newly created libFoo instance.