wex v24.04.0
Public Member Functions | Static Public Member Functions | List of all members
wex::app Class Reference

Offers the application, with lib specific init and exit, and provides access to the locale and the catalog dir. More...

#include <wex/core/app.h>

Inheritance diagram for wex::app:
Inheritance graph
[legend]

Public Member Functions

bool OnInit () override
 Constructs the config, initializes the locale, loads the VCS file.
 
int OnExit () override
 Deletes all global objects and cleans up things if necessary.
 
const std::string get_catalog_dir () const
 Returns the catalog dir.
 
auto get_language () const
 Returns locale language.
 

Static Public Member Functions

static const wxUILocale & get_locale ()
 Returns the locale.
 

Detailed Description

Offers the application, with lib specific init and exit, and provides access to the locale and the catalog dir.

Your application should be derived from this class.

Member Function Documentation

◆ OnExit()

int wex::app::OnExit ( )
override

Deletes all global objects and cleans up things if necessary.

You should normally don't need to override it.

◆ OnInit()

bool wex::app::OnInit ( )
override

Constructs the config, initializes the locale, loads the VCS file.

In your own OnInit first set the app name, as it uses this name for the config, and then call this base class method.