Main Page   Modules   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

Initializer Factories


namespace  at

Detailed Description


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.

Initializer Example

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

    Initializer_Example( int & argc, const char ** & argv )
        // do start-up things here

        // 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 doxygen and MakeXS at Sun Oct 24 17:35:34 PDT 2004