Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   Compound Members  

GaiaEN Class Reference

GaiaEN - Gaia Execution Node. More...

List of all members.

Static Public Methods

int init ()
 Initialize a container to allow access to services.

int fini ()
 Shutdown the container.

int load (const char *name, const char *args=NULL)
 Load a component into the container.


Detailed Description

GaiaEN - Gaia Execution Node.

This class creates a Gaia container (exection node) for applications. Applications (console and gui) should initialize the container before using any Gaia services.

Example:

include "Gaia.h"

int main(int argc, char **argv)
{
    // Initalize the container.
    Gaia::init();

    // Optionally load other needed components.
    GaiaEN::load("CORBA/Launcher", "-f launcher.xml");

    // ... use any Gaia services ...

    // Clean up the container.
    Gaia::fini();

    return 0;
}


Member Function Documentation

int GaiaEN::fini   [static]
 

Shutdown the container.

Returns:
status code: < 0 on error

int GaiaEN::init   [static]
 

Initialize a container to allow access to services.

Returns:
status code; < 0 on error

int GaiaEN::load const char *    name,
const char *    args = NULL
[static]
 

Load a component into the container.

Parameters:
name  component model and name to load
args  arguments to send to the component
Returns:
status code; < 0 on error


The documentation for this class was generated from the following file:
Generated on Wed Sep 18 18:10:51 2002 for Gaia by doxygen1.2.16