Main Page Class Hierarchy Compound List File List Compound Members File Members
Application development with the Razor! framework
The Hollywood principle applies
As has been explained in section The nature of a Framework, the behavior of an application which is based on a framework is defined by the code which you provide to the framework for invocation during program execution. This fully applies to the Razor! framework. The entire main application, including the startup code, the event loop, all the decisions about control flow, are provided by the Razor! framework. The framework will make calls into code which you will have to provide. You will have to present your code to the framework as a class which inherits from the ActionEngine class that is defined by the framework. ActionEngine defines all the hotspots that will be invoked by the framework. You are of course free to split up the functionality of your application into as many classes as you like, but you will always have to provide an ActionEngine as the main entry point into your code. Required steps
In order to develop a new application with Razor!, you will need to
- Make a copy of the Razor! source code, and of the project file.
- Include your source files into the project file.
- Create a specialization of ActionEngine (using inheritance)
- Modifiy the file "ActionEngineFactory.h" in order to tell Razor! the name of your new class.
- Modify the file "Customization.h" (Make sure you are at least providing a proper Creator ID).
Sample code
Look at the class DemoActionEngine for a working example of an ActionEngine.
Razor! Engine Developer's Guide. Copyright © by Tilo Christ. All Rights Reserved. Last updated: 17 Dec 2000