summaryrefslogtreecommitdiff
path: root/TAO/orbsvcs/tests/Notify/RT_lib/RT_Application_Command.cpp
blob: 7bb9c0d3801b4cf9f66bd060aa1b5d1a6bf62439 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
// $Id$

#include "RT_Application_Command.h"

ACE_RCSID(lib, TAO_RT_Application_Command, "$Id$")

#include "../lib/LookupManager.h"
#include "RT_Priority_Mapping.h"

TAO_Notify_Tests_RT_Application_Command::TAO_Notify_Tests_RT_Application_Command (void)
{
}

TAO_Notify_Tests_RT_Application_Command::~TAO_Notify_Tests_RT_Application_Command ()
{
}

void
TAO_Notify_Tests_RT_Application_Command::handle_init (ACE_ENV_SINGLE_ARG_DECL)
{
  // Call the Base class.
  TAO_Notify_Tests_Application_Command::handle_init (ACE_ENV_SINGLE_ARG_PARAMETER);
  ACE_CHECK;

  CORBA::ORB_var orb;

  LOOKUP_MANAGER->resolve (orb);

  TAO_Notify_Tests_RT_Priority_Mapping* mapping = new TAO_Notify_Tests_RT_Priority_Mapping ();

  mapping->init (orb.in () ACE_ENV_ARG_PARAMETER);
  ACE_CHECK;

  LOOKUP_MANAGER->_register (mapping);
}