Namespaces | |
| namespace | at |
The Initializer is a simple interface for capturing control at the point when main is called. This is needed by various libraries where a call from main() is the only viable solution.
The code below shows a simple initializer example. In this case, the constructor for the Initializer_Example is called just after main, (among other Initializer factories).
class Initializer_Example
: public Initializer
{
public:
Initializer_Example( int & argc, const char ** & argv )
{
// do start-up things here
}
~Initializer_Example()
{
// do exit things here
}
};
// Register the factory for Initializer_Example.
AT_MakeFactory2P( "Initializer_Example", Initializer_Example, Initializer, DKy, int & , const char ** & );
Generated for Austria by
and
MakeXS at Sun Oct 24 17:35:34 PDT 2004