Public Member Functions

pl7::Kernel Class Reference

#include <Kernel.h>

List of all members.

Public Member Functions

 Kernel (Application *app)
 ~Kernel (void)
ApplicationStateBrokerGetCurrentApplicationState () const
ApplicationStateBrokerGetNextApplicationState () const
bool RegisterApplicationState (ApplicationState *app_state)
std::vector< cl7::string_typeGetApplicationStateNames () const
bool NotifyApplicationState (ApplicationState *app_state)
bool NotifyApplicationState (const cl7::string_type &app_state_name)
bool SwitchApplicationState ()
bool Init ()
bool Shutdown ()
bool Prepare (const FrameStats &frame_stats)
bool Render (const FrameStats &frame_stats)
bool Move (const FrameStats &frame_stats)

Constructor & Destructor Documentation

pl7::Kernel::Kernel ( Application app  ) 

Explicit constructor.

pl7::Kernel::~Kernel ( void   ) 

Destructor.


Member Function Documentation

std::vector< cl7::string_type > pl7::Kernel::GetApplicationStateNames (  )  const

Returns a list containing the names of all registered application states.

ApplicationStateBroker* pl7::Kernel::GetCurrentApplicationState (  )  const [inline]

Returns the currently active application state.

ApplicationStateBroker* pl7::Kernel::GetNextApplicationState (  )  const [inline]

Returns the next application state to activate.

bool pl7::Kernel::Init (  ) 

Initializes the kernel and the registered application states in particular.

bool pl7::Kernel::Move ( const FrameStats frame_stats  ) 

Lets the currently active application state perform the "move" task.

bool pl7::Kernel::NotifyApplicationState ( ApplicationState app_state  ) 

Notifies the next application state to activate.

bool pl7::Kernel::NotifyApplicationState ( const cl7::string_type app_state_name  ) 

Notifies the next application state to activate.

bool pl7::Kernel::Prepare ( const FrameStats frame_stats  ) 

Lets the currently active application state perform the "prepare" task.

bool pl7::Kernel::RegisterApplicationState ( ApplicationState app_state  ) 

Adds a new application state to manage.

bool pl7::Kernel::Render ( const FrameStats frame_stats  ) 

Lets the currently active application state perform the "render" task.

bool pl7::Kernel::Shutdown (  ) 

Shuts down the kernel and the registered application states in particular.

bool pl7::Kernel::SwitchApplicationState (  ) 

Actually switches from the currently active application state to the notified next application state suspending the old one and waking the new one.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines