/**
 * @file RTClient_Setup.cpp
 *
 * RTClient_Setup.cpp,v 1.5 2004/02/04 20:20:23 parsons Exp
 *
 * @author Carlos O'Ryan <coryan@uci.edu>
 */

#include "RTClient_Setup.h"
#include "RIR_Narrow.h"
#include "tao/RTCORBA/RTCORBA.h"

#include "ace/Log_Msg.h"

#if !defined(__ACE_INLINE__)
#include "RTClient_Setup.inl"
#endif /* __ACE_INLINE__ */

ACE_RCSID (TAO_PERF_RTEC, 
           RTClient_Setup, 
           "RTClient_Setup.cpp,v 1.5 2004/02/04 20:20:23 parsons Exp")

RTClient_Setup::RTClient_Setup (int use_rt_corba,
                                CORBA::ORB_ptr orb,
                                const RT_Class &rt_class,
                                int nthreads
                                ACE_ENV_ARG_DECL)
  : use_rt_corba_ (use_rt_corba)
  , syncscope_setup_ (orb ACE_ENV_ARG_PARAMETER)
{
  ACE_CHECK;

  if (use_rt_corba)
    {
      ACE_AUTO_PTR_RESET (this->rtcorba_setup_,
                          new RTCORBA_Setup (orb,
                                             rt_class,
                                             nthreads
                                             ACE_ENV_ARG_PARAMETER),
                          RTCORBA_Setup
                         );
      ACE_CHECK;

#if 0
      ACE_AUTO_PTR_RESET (this->priorityband_setup_,
                          new PriorityBand_Setup (orb,
                                                  *this->rtcorba_setup_
                                                  ACE_ENV_ARG_PARAMETER),
                          PriorityBand_Setup
                         );
      ACE_CHECK;
        
#endif /* 0 */
    }
}
