class Stk_Prog: public Stk_Handler

This class is used to represent a prog on a stk system.

Inheritance:


Public Methods

[more] Stk_Prog(Stk_Prog *)
the code to init this program
[more] Stk_Prog(Stk_Looper *)
the first prog
[more]virtual void GetFocus()
get focus (code executed when a prog becomes active)
[more]virtual void LooseFocus()
loose focus
[more]virtual ~Stk_Prog()
the delete code : don't call it explicit use loop with return -1
[more]virtual void MessageReceived(Stk_Message *)
Hook function: When this handler receives a messages, it send to this function
[more]virtual int Loop()
the loop of program


Inherited from Stk_Handler:

Public Methods

ovoid AddHandler(Stk_Handler *)
ovoid RemHandler(Stk_Handler *)
ovirtual void Dispatch(Stk_Message *)
ovirtual void StkPostMessage(Stk_Message *)

Protected Fields

olist<Stk_Handler *> handlers
oStk_Looper* looper
oStk_Handler* father


Documentation

This class is used to represent a prog on a stk system. There are tree functions to write:
- Constructor: you place here what you must initialize
- Loop: you place here what we are doing at each frame. To quit this program, we must return 0 else return something different 0
- Destructor: this is simply the destructor
Each class son of Stk_Prog must call the derivated constructor. We could say that it works like context. if we create in Loop() another class wich derivates from Stk_Prog, next frame the Loop() of this new class will be used. To return old program, just return 0 in the new loop function.
WARNING: to create a prog, use the new operator. Don't create locally!!!
o Stk_Prog(Stk_Prog *)
the code to init this program

o Stk_Prog(Stk_Looper *)
the first prog

ovirtual void GetFocus()
get focus (code executed when a prog becomes active)

ovirtual void LooseFocus()
loose focus

ovirtual ~Stk_Prog()
the delete code : don't call it explicit use loop with return -1

ovirtual void MessageReceived(Stk_Message *)
Hook function: When this handler receives a messages, it send to this function

ovirtual int Loop()
the loop of program


This class has no child classes.

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.