//Editor-Info: -*- C++ -*-
//
//Subject: TOVE project / testing/mgmtswitch
//
//File: mgmttest.cpp
//
//Version: $Revision: 1.4 $
//
//State: $State: Exp $
//
//Date: $Date: 1998/07/06 11:54:27 $
//
//Organisation:
//      Helsinki University of Technology
//      Laboratory of Telecommunications Software and Multimedia
//
//Author:
//      Timo Kokkonen
//
//Description:
//      See corresponding header file.
//
//Copyright:
//      Copyright 1999 Helsinki University of Technology
//      ALL RIGHTS RESERVED BETWEEN JANUARY 1996 AND JUNE 1999.
//
//Licence:
//
//
//History:
//
//
//Function: constructor
//
//Description:
//
//
#include "mgmt/mgmtcommand.h"
#include "pf/debug.h"
#include "mgmttest.h"

mgmtTest :: mgmtTest(void)
    : mgmtDelegationBase()
{
    return;
}

//----------------------------------------------------------------------

//
//Function: destructor
//
//Description:
//
//
mgmtTest :: ~mgmtTest(void)
{
    return;
}

//----------------------------------------------------------------------

//
//Function: receivGet
//
//Description:
//
//
string mgmtTest :: receiveGet(const string &name_)
{
    debugString("receiveGet with name", name_);
    string result = "Not implememted here";

    return result;
}

//----------------------------------------------------------------------

//
//Function: receivSet
//
//Description:
//
//
void mgmtTest :: receiveSet(const string &name_, const string &value_)
{
    debugString("receiveSet with name", name_);
    debugString("and value", value_);
    return;
}

//----------------------------------------------------------------------

//
//Function: receivExecute
//
//Description:
//
//
void mgmtTest :: receiveExecute(mgmtCommand &command_)
{
    pfUlong commandLength = command_.getCommandLength();
    pfUlong i;
    string command("");
    string name("");
    string value("");
    string type("");

    command = command_.getCommandName();
    debugString("ReceiveExecute with command", command);

    for (i = 0; i < commandLength; ++i)
    {
        debugPfUlong("Parameter", i);
        command_.getNextParameter(name, value, type);
        debugString("name", name);
        debugString("value", value);
        debugString("type" ,type);
    }

    return;
}

//----------------------------------------------------------------------

void mgmtTest :: createOB_(void)
{
    createOB();

    return;
}
//----------------------------------------------------------------------

void mgmtTest :: registerToNameService_(string name_)
{
    registerToNameService(name_);

    return;
}
//----------------------------------------------------------------------

void mgmtTest :: unRegisterToNameService_(void)
{
    unRegisterToNameService();

    return;
}
//----------------------------------------------------------------------

void mgmtTest :: registerToOther_(string name_)
{
    registerToOther(name_);

    return;
}
//----------------------------------------------------------------------

void mgmtTest :: unRegisterToOther_(void)
{
    unRegisterToOther();

    return;
}
//----------------------------------------------------------------------
