//Editor-Info: -*- C++ -*-
//
//Subject: TOVE project / 
//
//File: 
//
//Version: $Revision: 1.4 $
//
//State: $State: Exp $
//
//Date: $Date: 1998/12/16 15:24:32 $
//
//Organisation:
//      Helsinki University of Technology
//      Laboratory of Telecommunications Software and Multimedia
//
//Author:
//      Sami Raatikainen
//
//Description:
//
//
//Copyright:
//      Copyright 1999 Helsinki University of Technology
//      ALL RIGHTS RESERVED BETWEEN JANUARY 1996 AND JUNE 1999.
//
//Licence:
//
//
//History: 
//

#include <typeinfo>

#include <OB/CORBA.h>
#include "pf/exception.h"
#include "pf/naming.h"
#include "pf/system.h"
#include "pf/debug.h"

#include "bisupclient.h"

int main(int argc, char* argv[], char*[])
{

    // CORBA initialize
    pfSystem::init(argc, argv);

    // Getting the adapter from name service    
    CosNaming_Name name = pfNaming::parseName("bisupClient");

    CORBA_Object_var obj;    
    try
    {
        obj = pfNaming::instance()->resolve(name);
    }
    catch (pfMethodFailed &mf)
    {
        mf.printInfo();
        exit(1);
    }

    try
    {
        bisupClientInterface_var testBisupClient =
            bisupClientInterface::_narrow(obj);
        
        testBisupClient->start(6);
        
    }
    catch(...)
    {
        debugUser("Corba system error");
    }
    
    return 0;
}

