Public Member Functions | Public Attributes

cmn_Global Class Reference
[Common, basic classes, functions and types]

#include <cmn_globals.h>

Collaboration diagram for cmn_Global:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 cmn_Global ()
 ~cmn_Global ()
bool IsDbgActive ()
void cmn_SetHostNames (string &a_hostname, string &a_servername)

Public Attributes

const string c_ErrorFileName
bool m_evtReady
bool m_dbgReady
ivd_Product prod
ivd_Directories dirs
log_ErrorStream err
cmn_SysInfo si
log_Debugger dbg
 Global singleton for debugging.
log_EventLogger evt
 Global facility for event logging.
cmn_UTF8Converter conv
 Converter between locale codeset and UTF-8.
cmn_Path unitTestPath
 path used for unit tests.

Detailed Description

Definition at line 41 of file cmn_globals.h.


Constructor & Destructor Documentation

cmn_Global::cmn_Global (  ) 

Definition at line 44 of file cmn_global.cpp.

References IVD_COUT_LOG_m, cmn_SysInfo::m_effUserName, m_evtReady, si, and unitTestPath.

    : c_ErrorFileName("error.log"),
      m_evtReady(false),
      m_dbgReady(false), // dbg obj set this value when it is ready
      dbg(m_dbgReady),
      conv(g_cmn.si.m_codeset)
{
    IVD_COUT_LOG_m(" cmn_Global::cmn_Global() ")

#if TGT_OS_windows
    unitTestPath = string("c:\\ivd\\build\\ut");
#else
    unitTestPath = string("/proj/" + si.m_effUserName + "/ut");
#endif

    // Other member objects' ctors rely on this member.
    m_evtReady = true;
}

cmn_Global::~cmn_Global (  ) 

Definition at line 63 of file cmn_global.cpp.

References IVD_COUT_LOG_m.

                        {
    IVD_COUT_LOG_m(" cmn_Global::~cmn_Global() ")
}


Member Function Documentation

void cmn_Global::cmn_SetHostNames ( string &  a_hostname,
string &  a_servername 
) [inline]

Definition at line 48 of file cmn_globals.h.

                                                                    {
        si.cmn_SetHostNames(a_hostname, a_servername);
    }

bool cmn_Global::IsDbgActive (  )  [inline]

Member Data Documentation

Definition at line 52 of file cmn_globals.h.

Referenced by log_ErrorStream::SetNewPath().

Converter between locale codeset and UTF-8.

Definition at line 77 of file cmn_globals.h.

Referenced by cmn_LocaleToUTF8(), and cmn_UTF8ToLocale().

Definition at line 61 of file cmn_globals.h.

Referenced by i_ManagementInterface_i::AddMediumToPool(), blk_DiskFRIReader::blk_DiskFRIReader(), bea_MigrationThread::CheckFRI(), i_HSM_i::CheckFSCvsIVDFS(), i_MaintFriJob_i::CheckReadFri(), rm_DiskBuffer::Clear(), i_BackEndAgent_i::CloseMediumVolume(), bea_FRI::CloseVolume(), bea_FRI::CreateFRI(), cmn_File::CreatePipe(), i_Service_i::DeleteFile(), rm_DiskBufAllocator::DetectVolumes(), i_Service_i::Execute(), fsc_GetDir(), fsc_GetRedunCopyDir(), fsc_GetReorgDir(), bea_DiskMedium::GetDiskMediumPath(), fsc_RawMedVolPathCollector::GetFileName(), i_MaintFriJob_i::GetFRI(), hsm_HL7MessageProxy::hsm_HL7MessageProxy(), HsmApiEnableDebug(), i_BackEndAgent_i::i_BackEndAgent_i(), i_DownloadAgent_i::i_DownloadAgent_i(), i_MediumCheckJob_i::i_MediumCheckJob_i(), i_ResourceManager_i::i_ResourceManager_i(), i_UploadAgent_i::i_UploadAgent_i(), log_ivdfs::Init(), ipc_Corba::Init(), ClientConf_t::Init(), bea_Volume::Init(), i_ReorgJob_i::InitializeVolumes(), log_ErrorStream::log_ErrorStream(), main(), df_FRI::MediumVolumeClosed(), bea_MigrationThread::Migrate(), bea_FRI::MoveFromWorkToFRI(), bea_Volume::MustDumpFRI(), nsc_ScanForIVDFSRecovery(), la_SCSILibrary::Open(), blk_DiskFRIWriter::OpenFRIFile(), i_PartitionManager_i::ParseConfig(), i_ResourceManager_i::ParsePMConfig(), cmn_SysInfo::ParseServices(), i_MaintFriJob_i::PrepareVolumes(), i_RecoveryJob_i::ProcessFRI(), i_MediumCheckJob_i::ProcessFRI(), i_PartitionManager_i::ReadCollocationInfo(), i_PartitionManager_i::ReadHl7Info(), bea_DupReadThread::ReadMedVolume(), ReadRefFromFile(), fio_uvListMgr::ReadUV(), bea_DiskMedium::Refresh(), i_ManagementInterface_i::RemovePartition(), rm_DiskBuffer::ReportContent(), rm_DiskBuffer::rm_DiskBuffer(), ivd_DD::Run(), RunOmniNames(), bea_FRI::SaveFRIOnError(), log_Debugger::SetFileName(), log_EventLogger::SetNewPath(), log_ErrorStream::SetNewPath(), mif_CfgRep::SetPath(), bea_FRIThread::SetWorkDir(), SimulateMediumError(), SimulateUVStructureError(), cfg_CollocationInfo::WriteCollocationInfo(), cfg_HL7Info::WriteHL7Info(), bea_DupWriteThread::WriteMedVolume(), WriteRefToFile(), i_MediumDupl_i::~i_MediumDupl_i(), and i_RedundantCopyJob_i::~i_RedundantCopyJob_i().

Definition at line 64 of file cmn_globals.h.

Definition at line 55 of file cmn_globals.h.

Referenced by dbg_IsActive().

Definition at line 54 of file cmn_globals.h.

Referenced by cmn_Global(), and log_Output().

Definition at line 68 of file cmn_globals.h.

Referenced by _tmain(), log_Debugger::ChangeParams(), CliConnectToHSM(), CliConnectToMIF(), cmn_DaemonInit(), cmn_Global(), i_ManagementInterface_i::DisableDebug(), i_ManagementInterface_i::EnableDebug(), i_MigrationJob_i::Execute(), i_ManagementInterface_i::FileHistory(), cfg_CollocationInfo::GenerateCollocationInfoFile(), cfg_HL7Info::GenerateHL7InfoFile(), i_ManagementInterface_i::GetCollocationInfo(), log_EventLogger::GetHeader(), i_ManagementInterface_i::GetHl7Info(), i_HSM_i::GetInfo(), i_Component_i::GetVersion(), ut_Group::Header(), i_ManagementInterface_i::i_ManagementInterface_i(), ipc_Corba::Init(), i_AdminJob_i::InitializeSingleVolume(), IsFileOffline(), ivd_FileSystemAPI::ivd_FileSystemAPI(), i_ManagementInterface_i::ListDrives(), cfg_CliBase::LocaleToUTF8Argv(), log_Output(), main(), i_EfficientRecallJob_i::MediumOperationComplete(), log_Debugger::On(), i_PartitionManager_i::ParseConfig(), i_LibraryAgentSCSI_i::ReadDriveInfo(), i_ManagementInterface_i::RecallFile(), ipc_Corba::RegisterFSEvtMgr(), ipc_Corba::RegisterLA(), ipc_Corba::RegisterMIF(), ipc_Corba::RegisterPMByPMID(), ipc_Corba::RegisterSvc(), i_Job_i::ReleaseDiskBuffer(), FSEvMgrThrd::Run(), pm_RecallClientThread::Run(), RunOmniNames(), ServerLoop(), i_Job_i::SetDriveProperties(), log_Debugger::SetFileName(), api_Partition::SetReferences(), i_HSM_i::ShowStatus(), mif_PartMgr::StartPM(), Suspend(), i_ManagementInterface_i::TrigMigration(), i_ManagementInterface_i::UpdatePool(), log_EventLogger::Write(), and log_Debugger::WriteHeader().

path used for unit tests.

Reason: reduce number of ? <files> in CVS

Definition at line 82 of file cmn_globals.h.

Referenced by cmn_Global().


The documentation for this class was generated from the following files: