Otclient  14/8/2020
Application Class Referenceabstract

#include <application.h>

Inheritance diagram for Application:
Collaboration diagram for Application:

Public Member Functions

 Application ()
 
virtual ~Application ()
 
virtual void init (std::vector< std::string > &args)
 
virtual void deinit ()
 
virtual void terminate ()
 
virtual void run ()=0
 
virtual void poll ()
 
virtual void exit ()
 
virtual void close ()
 
void setName (const std::string &name)
 
void setCompactName (const std::string &compactName)
 
void setVersion (const std::string &version)
 
bool isRunning ()
 
bool isStopping ()
 
bool isTerminated ()
 
const std::string & getName ()
 
const std::string & getCompactName ()
 
const std::string & getVersion ()
 
std::string getCharset ()
 
std::string getBuildCompiler ()
 
std::string getBuildDate ()
 
std::string getBuildRevision ()
 
std::string getBuildCommit ()
 
std::string getBuildType ()
 
std::string getBuildArch ()
 
std::string getOs ()
 
std::string getStartupOptions ()
 

Protected Member Functions

void registerLuaFunctions ()
 

Protected Attributes

std::string m_charset
 
std::string m_appName
 
std::string m_appCompactName
 
std::string m_appVersion
 
std::string m_startupOptions
 
stdext::boolean< false > m_running
 
stdext::boolean< false > m_stopping
 
stdext::boolean< false > m_terminated
 

Detailed Description

Definition at line 30 of file application.h.

Constructor & Destructor Documentation

◆ Application()

Application::Application ( )

Definition at line 55 of file application.cpp.

◆ ~Application()

virtual Application::~Application ( )
inlinevirtual

Definition at line 34 of file application.h.

Member Function Documentation

◆ close()

void Application::close ( )
virtual

Reimplemented in GraphicalApplication.

Definition at line 166 of file application.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ deinit()

void Application::deinit ( )
virtual

Reimplemented in GraphicalApplication.

Definition at line 104 of file application.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ exit()

void Application::exit ( )
virtual

Definition at line 160 of file application.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getBuildArch()

std::string Application::getBuildArch ( )
inline

Definition at line 61 of file application.h.

Here is the caller graph for this function:

◆ getBuildCommit()

std::string Application::getBuildCommit ( )
inline

Definition at line 59 of file application.h.

Here is the caller graph for this function:

◆ getBuildCompiler()

std::string Application::getBuildCompiler ( )
inline

Definition at line 56 of file application.h.

Here is the caller graph for this function:

◆ getBuildDate()

std::string Application::getBuildDate ( )
inline

Definition at line 57 of file application.h.

Here is the caller graph for this function:

◆ getBuildRevision()

std::string Application::getBuildRevision ( )
inline

Definition at line 58 of file application.h.

Here is the caller graph for this function:

◆ getBuildType()

std::string Application::getBuildType ( )
inline

Definition at line 60 of file application.h.

Here is the caller graph for this function:

◆ getCharset()

std::string Application::getCharset ( )
inline

Definition at line 55 of file application.h.

◆ getCompactName()

const std::string& Application::getCompactName ( )
inline

Definition at line 52 of file application.h.

Here is the caller graph for this function:

◆ getName()

const std::string& Application::getName ( )
inline

Definition at line 51 of file application.h.

Here is the caller graph for this function:

◆ getOs()

std::string Application::getOs ( )

Definition at line 172 of file application.cpp.

Here is the caller graph for this function:

◆ getStartupOptions()

std::string Application::getStartupOptions ( )
inline

Definition at line 63 of file application.h.

Here is the caller graph for this function:

◆ getVersion()

const std::string& Application::getVersion ( )
inline

Definition at line 53 of file application.h.

Here is the caller graph for this function:

◆ init()

void Application::init ( std::vector< std::string > &  args)
virtual

Reimplemented in GraphicalApplication.

Definition at line 64 of file application.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ isRunning()

bool Application::isRunning ( )
inline

Definition at line 48 of file application.h.

Here is the caller graph for this function:

◆ isStopping()

bool Application::isStopping ( )
inline

Definition at line 49 of file application.h.

Here is the caller graph for this function:

◆ isTerminated()

bool Application::isTerminated ( )
inline

Definition at line 50 of file application.h.

Here is the caller graph for this function:

◆ poll()

void Application::poll ( )
virtual

Reimplemented in GraphicalApplication.

Definition at line 146 of file application.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ registerLuaFunctions()

void Application::registerLuaFunctions ( )
protected

Definition at line 64 of file luafunctions.cpp.

Here is the caller graph for this function:

◆ run()

virtual void Application::run ( )
pure virtual

◆ setCompactName()

void Application::setCompactName ( const std::string &  compactName)
inline

Definition at line 45 of file application.h.

Here is the caller graph for this function:

◆ setName()

void Application::setName ( const std::string &  name)
inline

Definition at line 44 of file application.h.

Here is the caller graph for this function:

◆ setVersion()

void Application::setVersion ( const std::string &  version)
inline

Definition at line 46 of file application.h.

Here is the caller graph for this function:

◆ terminate()

void Application::terminate ( )
virtual

Reimplemented in GraphicalApplication.

Definition at line 124 of file application.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ m_appCompactName

std::string Application::m_appCompactName
protected

Definition at line 70 of file application.h.

◆ m_appName

std::string Application::m_appName
protected

Definition at line 69 of file application.h.

◆ m_appVersion

std::string Application::m_appVersion
protected

Definition at line 71 of file application.h.

◆ m_charset

std::string Application::m_charset
protected

Definition at line 68 of file application.h.

◆ m_running

stdext::boolean<false> Application::m_running
protected

Definition at line 73 of file application.h.

◆ m_startupOptions

std::string Application::m_startupOptions
protected

Definition at line 72 of file application.h.

◆ m_stopping

stdext::boolean<false> Application::m_stopping
protected

Definition at line 74 of file application.h.

◆ m_terminated

stdext::boolean<false> Application::m_terminated
protected

Definition at line 75 of file application.h.


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