// {{{RME component 'Component View::DetectarPacoteComponent'

#if defined( PRAGMA ) && ! defined( PRAGMA_IMPLEMENTED )
#pragma implementation "RTSystem/DetectarPacoteComponent.h"
#endif

#include <RTSystem/DetectarPacoteComponent.h>
extern const RTActorClass DetectarPacote;
extern const RTObject_class RTType_Pacote;
extern const RTObject_class RTType_Sensor;

static const RTObject_class * const rtg_user_types[] =
{
	// {{{RME classifier 'Logical View::Pacote' tool 'OT::CppTargetRTS' property 'GenerateDescriptor'
	&RTType_Pacote
	// }}}RME
	// {{{RME classifier 'Logical View::SensoresData::Sensor' tool 'OT::CppTargetRTS' property 'GenerateDescriptor'
  , &RTType_Sensor
	// }}}RME
};

#ifndef RTDEFAULT_ARGV
#define RTDEFAULT_ARGV { "DetectarPacote" }
#undef RTDEFAULT_ARGC
#define RTDEFAULT_ARGC 1
#endif

const char * default_argv[] = RTDEFAULT_ARGV;

int default_argc = RTDEFAULT_ARGC;

#if USE_THREADS

void _rtg_createThreads( RTDebugger * debugger )
{
}

void _rtg_mapLogicalThreads( RTController * controller )
{
}

void _rtg_deleteThreads( void )
{
}
#else

void _rtg_mapLogicalThreads( RTController * controller )
{
}
#endif

static const RTSystemDescriptor _rtg_system =
{
	RTDEFAULT_ARGC
  , default_argv
  , &DetectarPacote
  , 2
  , rtg_user_types
#if USE_THREADS
  , DEFAULT_MAIN_PRIORITY
  , 20000
  , DEFAULT_TIMER_PRIORITY
  , 20000
  , _rtg_createThreads
  , _rtg_deleteThreads
#endif
  , _rtg_mapLogicalThreads
};

int RTMain::entryPoint( int argc, const char * const * argv )
{
	return execute( &_rtg_system, argc, argv );
}

// }}}RME
