feisty meow concerns codebase  2.140
application::base_application Class Referenceabstract

Provides a base object for the root application portion of a program. More...

#include <base_application.h>

Inheritance diagram for application::base_application:
Collaboration diagram for application::base_application:

Public Member Functions

virtual const char * class_name () const =0
 Returns the bare name of this class as a constant character pointer. More...
 
virtual int execute ()=0
 performs the main activity of this particular application object. More...
 

Detailed Description

Provides a base object for the root application portion of a program.

This mainly defines an entry point into the application's real functionality. Derived versions of the base_application can layer in more functionality as appropriate for different types of applications.

Definition at line 31 of file base_application.h.

Member Function Documentation

◆ class_name()

virtual const char* application::base_application::class_name ( ) const
pure virtual

Returns the bare name of this class as a constant character pointer.

The name returned here is supposed to be just a class name and not provide any more information than that. It is especially important not to add any syntactic elements like '::' to the name, since a bare alphanumeric name is expected.

Implements basis::nameable.

◆ execute()

virtual int application::base_application::execute ( )
pure virtual

performs the main activity of this particular application object.

the method must be overridden by the derived object. a return value for the program as a whole should be returned.

Implemented in application::application_shell, and write_build_config.


The documentation for this class was generated from the following file: