//$Id: Counter_i.cpp 77008 2007-02-12 11:52:38Z johnnyw $

#include "Counter_i.h"

ACE_RCSID(tao, Counter_Servant, "$Id: Counter_i.cpp 77008 2007-02-12 11:52:38Z johnnyw $")

// Dtor-Ctor Implementation.

Counter_Servant::Counter_Servant (Policy_Tester *policy_tester)
  : count_ (0),
    policy_tester_ (policy_tester)
{
  // No-Op.
}

Counter_Servant::~Counter_Servant (void)
{
  // No-Op.
}

// Counter Interface Methods Implementation.

void
Counter_Servant::increment (/**/)
{
  ++this->count_;
}

CORBA::Long
Counter_Servant::get_count (/**/)
{
  return this->count_;
}

void
Counter_Servant::reset (/**/)
{
  this->count_ = 0;
}

void
Counter_Servant::shutdown (void)
{
  this->policy_tester_->shutdown ();
}
