Lisp

Commande de compilation

Commande d'enregistrement des objets Corba

${MICO_HOME}/bin/ird -ORBIIOPAddr inet:localhost:8888 --db ${MICO_HOME}/db/db-ird
${MICO_HOME}/bin/micod -ORBIIOPAddr inet:localhost:9999 --db ${MICO_HOME}/db/db-micod.txt --forward
upsvtm corba=charger

Commande d'exécution

${MICO_HOME}/bin/ird -ORBIIOPAddr inet:localhost:8888 --db ${MICO_HOME}/db/db-ird
${MICO_HOME}/bin/micod -ORBIIOPAddr inet:localhost:9999 --db ${MICO_HOME}/db/db-micod.txt --forward
lisp -ORBIfaceRepoAddr inet:localhost:8888 -ORBImplRepoAddr inet:localhost:9999 -ORBBindAddr local:

Fichier source

#include <CORBA.h>
#include <mico/string.h>
#include <upskrn.hh>
#include <upscrbexception.h>

using namespace std;

static const CORBA::UShort CO_ComparaisonAvant=1;
static const CORBA::UShort CO_ComparaisonEgal=2;
static const CORBA::UShort CO_ComparaisonApres=3;
static const CORBA::UShort CO_ComparaisonNul=4;

static CORBA::ORB *pOrb;
static CORBA::BOA *pBoa;
static CORBA::Object *pObjet;
static IUpsKrn *pIUpsKrn;

/****************************************************************/
static void P1(IUpsKrnCaractere *O)
/****************************************************************/
{
try catch (UpsCrbException *E) catch (CORBA::Exception &e) }

/****************************************************************/
static void P2(IUpsKrnCaractere *O1, IUpsKrnEntier *O2)
/****************************************************************/
{
try catch (CORBA::Exception &e) catch (UpsCrbException *E) catch (CORBA::Exception &e) }

/****************************************************************/
static IUpsKrnCaractere *F1(IUpsKrnCaractere *O)
/****************************************************************/
{
try catch (UpsCrbException *E) catch (CORBA::Exception &e) return(NULL);
}

/****************************************************************/
static IUpsKrnCaractere *F2(IUpsKrnCaractere *O1, IUpsKrnEntier *O2)
/****************************************************************/
{
try catch (UpsCrbException *E) catch (CORBA::Exception &e) return(NULL);
}

/****************************************************************/
static IUpsKrnBooleen *F3(IUpsKrnCaractere *O1)
/****************************************************************/
{
try catch (UpsCrbException *E) catch (CORBA::Exception &e) return(NULL);
}

/****************************************************************/
static CORBA::UShort F4(IUpsKrnCaractere *O1, IUpsKrnCaractere *O2)
/****************************************************************/
{
try catch (UpsCrbException *E) catch (CORBA::Exception &e) return(0);
}

/****************************************************************/
static void EcrireListe(IUpsKrnListe *L)
/****************************************************************/
{
IUpsKrnCaractere_var C;

try catch (UpsCrbException *E) catch (CORBA::Exception &e) }