/** \file
 *
 *  Contains the BITModule class implementation.
 *
 *  Copyright (c) 2007,2008,2009 MBARI
 *  MBARI Proprietary Information.  All Rights Reserved
 */

#include "BITModule.h"

#include "CBIT.h"
#include "CBITIF.h"
#include "SBIT.h"
#include "SBITIF.h"
#include "IBIT.h"
#include "IBITIF.h"

BITModule::BITModule()
    : Module( "BIT",
              "Contains the BuiltInTest components, such as C Built In Test" )
{}

void BITModule::loadComponents( Logger& logger )
{
    if( loadAtStartup( SBITIF::LOAD_AT_STARTUP, logger ) )
    {
        registerComponent( new SBIT( this ) );
    }
    if( loadAtStartup( IBITIF::LOAD_AT_STARTUP, logger ) )
    {
        registerComponent( new IBIT( this ) );
    }
    if( loadAtStartup( CBITIF::LOAD_AT_STARTUP, logger ) )
    {
        registerComponent( new CBIT( this ) );
    }
}

BITModule::~BITModule()
{
}
