bpf::system::UnixApp class final

Base classes

class Application

Public static functions

static auto GetArguments(char** argv, int argc) -> collection::Array<String>

Constructors, destructors, conversion operators

UnixApp(char** argv, char** env)

Public functions

void CreateConsole(const fint rows, const fint columns) final
auto GetWorkingDirectory() const -> io::File final
auto SetWorkingDirectory(const io::File& file) -> bool final
void DisableErrorDialogs() final noexcept
void SetModuleDirectories(const collection::Array<io::File>& directories) virtual

Function documentation

void bpf::system::UnixApp::CreateConsole(const fint rows, const fint columns) final

Parameters
rows number of rows in the console window
columns number of columns in the console window
Exceptions
OSException in case of system error

Allocates a console for this application if it does not already have one. Only useful when the system do not create a console

io::File bpf::system::UnixApp::GetWorkingDirectory() const final

Returns new io::File containing current working directory as given by system

Gets the current working directory

bool bpf::system::UnixApp::SetWorkingDirectory(const io::File& file) final

Parameters
file the new current working directory (relative paths are supported)
Returns true if operation succeeded, false otherwise

Sets the current working directory

void bpf::system::UnixApp::DisableErrorDialogs() final noexcept

Disables operating system level dialogs shown when an application crashes. Useful when building command line applications

void bpf::system::UnixApp::SetModuleDirectories(const collection::Array<io::File>& directories) virtual

Parameters
directories the new directories to use for resolving dependencies
Exceptions
OSException if multiple directories are given and the system only supports one or if system error
io::IOException if any of the given paths is not a directory

Sets the additional module directories for this application