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.


Detailed Description

Definition at line 27 of file cmn_globals.h.


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.

Constructor & Destructor Documentation

cmn_Global::cmn_Global (  ) 

Definition at line 30 of file cmn_global.cpp.

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

00031     : c_ErrorFileName("error.log"),
00032       m_evtReady(false),
00033       m_dbgReady(false), // dbg obj set this value when it is ready
00034       dbg(m_dbgReady),
00035       conv(g_cmn.si.m_codeset)
00036 {
00037     IVD_COUT_LOG_m(" cmn_Global::cmn_Global() ")
00038 
00039 #if TGT_OS_windows
00040     unitTestPath = string("c:\\ivd\\build\\ut");
00041 #else
00042     unitTestPath = string("/proj/" + si.m_effUserName + "/ut");
00043 #endif
00044 
00045     // Other member objects' ctors rely on this member.
00046     m_evtReady = true;
00047 }

cmn_Global::~cmn_Global (  ) 

Definition at line 49 of file cmn_global.cpp.

References IVD_COUT_LOG_m.

00049                         {
00050     IVD_COUT_LOG_m(" cmn_Global::~cmn_Global() ")
00051 }


Member Function Documentation

bool cmn_Global::IsDbgActive (  )  [inline]

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

Definition at line 34 of file cmn_globals.h.

00034                                                                     {
00035         si.cmn_SetHostNames(a_hostname, a_servername);
00036     }


Member Data Documentation

Definition at line 38 of file cmn_globals.h.

Referenced by log_ErrorStream::SetNewPath().

Definition at line 40 of file cmn_globals.h.

Referenced by cmn_Global(), and log_Output().

Definition at line 41 of file cmn_globals.h.

Referenced by dbg_IsActive().

Definition at line 47 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(), 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(), 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(), 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(), bea_DupWriteThread::WriteMedVolume(), WriteRefToFile(), i_MediumDupl_i::~i_MediumDupl_i(), and i_RedundantCopyJob_i::~i_RedundantCopyJob_i().

Definition at line 50 of file cmn_globals.h.

Converter between locale codeset and UTF-8.

Definition at line 63 of file cmn_globals.h.

Referenced by cmn_LocaleToUTF8(), and cmn_UTF8ToLocale().

path used for unit tests.

Reason: reduce number of ? <files> in CVS

Definition at line 68 of file cmn_globals.h.

Referenced by cmn_Global().


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

Generated on Mon Feb 27 19:05:06 2012 for OPENARCHIVE by  doxygen 1.5.6