//=========================================================================
// Summary  : 
// Filename : WatchdogCommand.cc
// Author   : 
// Project  : 
// Version  : $Revision: 1.1 $
// Created  : 04/12/2000
// Modified : 
// Archived : 
//=========================================================================
// Modification History: 
// $Id: WatchdogCommand.cc,v 1.1 2000/08/14 19:02:23 jrieffel Exp $
//=========================================================================

#include <stdio.h>


#include "WatchdogCommand.h"

//=========================================================================
WatchdogCommand::WatchdogCommand( const char *name,
				MessageQueue::Access access )
     : MessageQueue( name,
		     sizeof( Command ),
		     20,
		     access )
{

}

WatchdogCommand::WatchdogCommand( MessageQueue::Access access )
     : MessageQueue( WatchdogCommandName,
		     sizeof( Command ),
		     20,
		     access )
{

}

//=========================================================================
WatchdogCommand::~WatchdogCommand()
{

}


//=========================================================================
int WatchdogCommand::read( Command *cmd )
{
     return MessageQueue::read( (void *)cmd );
}

//=========================================================================
int WatchdogCommand::write( Command *cmd )
{
     return MessageQueue::write( (void *)cmd );
}

//=========================================================================

char *WatchdogCommand::makeName( int num, char *name )
{
     sprintf( name, "%s%d", WatchdogCommandName, num );
     return name;
}


//=========================================================================
