Navigation:  Programming Cookbook > Creating Console Applications >

Architecture

Previous pageReturn to chapter overviewNext page

A Dolphin console application consists of a specialized console session manager class, and as many further application classes as are required.

The main entry point class in any Dolphin application is the session manager, with console applications being no exception. Each console application must therefore include a new subclass of ConsoleSessionManager.

The session manager is responsible for managing the lifecycle of an application, from initial startup through to shutdown. The session manager launches the application from its #main method, which is analogous to the main() function in a C program In fact a typical console session manager will need only this single method. The #main method might implement the entire application in simple cases (e.g. 'Hello World'), but more likely there will be a least one further application class, and the session manager will hand off control to a new instance of that class.