Esempio n. 1
0
DsLogAdmin::BasicLog_ptr
TAO_BasicLogFactory_i::create (DsLogAdmin::LogFullActionType full_action,
                               CORBA::ULongLong max_size,
                               DsLogAdmin::LogId_out id_out)
{
  this->create_i (full_action,
                  max_size,
                  0,
                  id_out);
  DsLogAdmin::LogId id = id_out;

#if (TAO_HAS_MINIMUM_POA == 0)
  DsLogAdmin::Log_var log =
    this->create_log_reference (id);
#else
  DsLogAdmin::Log_var log =
    this->create_log_object (id);
#endif

  // narrow to BasicLog
  DsLogAdmin::BasicLog_var basic_log =
    DsLogAdmin::BasicLog::_narrow (log.in ());

  return basic_log._retn ();
}
Logging::AcsLogService_ptr ACSLogFactory_i::create_with_id (
		DsLogAdmin::LogId id,
		DsLogAdmin::LogFullActionType full_action,
		CORBA::ULongLong max_size)
{
	this->create_with_id_i (id,
			full_action,
			max_size,
			0);

	DsLogAdmin::Log_var log =
		this->create_log_object (id);

	// narrow to AcsLogService
	Logging::AcsLogService_var acs_log =
		Logging::AcsLogService::_narrow (log.in ());

	return acs_log._retn ();
}
Logging::AcsLogService_ptr ACSLogFactory_i::create (
		DsLogAdmin::LogFullActionType full_action,
		CORBA::ULongLong max_size,
		DsLogAdmin::LogId_out id_out)
{
	this->create_i (full_action,
			max_size,
			0,
			id_out);
	DsLogAdmin::LogId id = id_out;

	DsLogAdmin::Log_var log =
		this->create_log_object (id);

	Logging::AcsLogService_var acs_log =
		Logging::AcsLogService::_narrow (log.in ());

	return acs_log._retn ();

}