Main Page   Namespace List   Class Hierarchy   Data Structures   File List   Namespace Members   Data Fields   Globals   Related Pages  

bogotel::CUtil Class Reference

#include <Util.h>

Collaboration diagram for bogotel::CUtil:

Collaboration graph
[legend]

Public Member Functions

 CUtil ()
virtual ~CUtil ()
void log (int iLevel, int iChan, char *szFmt,...)
int init ()
std::string getInstanceNum ()

Data Fields

CProperties m_propIni

Protected Member Functions

int setIniFilename ()
int setInstanceNum (u_short usPort)
int getStringParm (const char *szFilename, char *szName, char *szVal)

Protected Attributes

std::string m_strIniFilename
int m_iInstanceNum

Private Member Functions

log4cpp::Priority::PriorityLevel logLevel2Priority (int iLevel)

Private Attributes

log4cpp::Category * m_pLogCat
std::string m_strIniFilePath

Static Private Attributes

const std::string s_arrstrIniLocation [2]

Constructor & Destructor Documentation

bogotel::CUtil::CUtil  ) 
 

Definition at line 32 of file Util.cpp.

References INVALID_INST_NUM, and LOG_CAT_NAME.

bogotel::CUtil::~CUtil  )  [virtual]
 

Definition at line 39 of file Util.cpp.


Member Function Documentation

void bogotel::CUtil::log int  iLevel,
int  iChan,
char *  szFmt,
... 
 

Definition at line 164 of file Util.cpp.

References logLevel2Priority().

Referenced by bogotel::CBgtRt::acceptCall(), bogotel::CTimer::add(), bogotel::CEvtQueue::add(), bogotel::CBgtRt::addEvent(), bogotel::CBgtRt::answerCall(), bogotel::CBgtRt::CBgtRt(), bogotel::CTimer::checkForExpirations(), bogotel::CBgtRt::clearDigitBuffer(), bogotel::CBgtRt::deregisterCrn(), bogotel::CBgtRt::dial(), bogotel::CDialOp::dialSingleDigit(), bogotel::CBgtRt::disableHandler(), bogotel::CTimer::do_thread(), bogotel::CDlgEvtHdlr::do_thread(), bogotel::CMsgTransport::do_thread_listen(), bogotel::CMsgTransport::do_thread_talk(), bogotel::CBgtRt::dropCall(), bogotel::CBgtRt::enableHandler(), bogotel::CBgtRt::getAni(), bogotel::CBgtRt::getDigit(), bogotel::CBgtRt::getDnis(), bogotel::CBgtRt::getEvtCrn(), bogotel::CBgtRt::getEvtDevHandle(), bogotel::CBgtRt::getEvtFlags(), bogotel::CBgtRt::getEvtSignalDevHandle(), bogotel::CBgtRt::getEvtType(), bogotel::CBgtRt::getEvtUsrAttr(), bogotel::CBgtRt::getEvtVoiceDevHandle(), bogotel::CBgtRt::getSignalTimeslot(), bogotel::CBgtRt::getTermMsk(), bogotel::CBgtRt::getUsrAttr(), bogotel::CBgtRt::getVoiceTimeslot(), bogotel::CTimer::handleDefunctTargets(), bogotel::CBgtRt::incomingMsg(), init(), bogotel::CMsg::init(), bogotel::CMsgTransport::init(), bogotel::CBgtRt::listenSignalTimeslot(), bogotel::CBgtRt::listenVoiceTimeslot(), bogotel::CVoiceDev::log(), bogotel::CTermParms::log(), bogotel::CSignalDev::log(), bogotel::CIOOp::log(), bogotel::CSignalDev::logF(), bogotel::CBgtRt::makeCall(), bogotel::CBgtRt::mediaFilePlay(), bogotel::CMsgTransport::openListenerSocket(), bogotel::CBgtRt::openSignalDev(), bogotel::CMsgTransport::openTalkerSocket(), bogotel::CBgtRt::openVoiceDev(), bogotel::CBgtRt::putEvt(), bogotel::CBgtRt::registerCrn(), bogotel::CTimer::registerTarget(), bogotel::CBgtRt::releaseCall(), bogotel::CTimer::requestTargetDeletion(), bogotel::CBgtRt::resetLineDev(), bogotel::CBgtRt::resultValue(), bogotel::CMsgTransport::runListener(), bogotel::CMsgTransport::runTalker(), bogotel::CMsgTransport::sendMsg(), bogotel::CBgtRt::setCallingNum(), setInstanceNum(), bogotel::CBgtRt::stopVoice(), bogotel::CTimerTarget::timerExpired(), bogotel::CMsg::toString(), bogotel::CEvtQueue::wait(), bogotel::CBgtRt::waitCall(), and bogotel::CBgtRt::waitEvent().

int bogotel::CUtil::init  ) 
 

Definition at line 44 of file Util.cpp.

References bogotel::CProperties::getProperty(), bogotel::CProperties::load(), log(), m_pLogCat, m_propIni, m_strIniFilename, m_strIniFilePath, bogotel::resultERROR, bogotel::resultSUCCESS, setIniFilename(), and setInstanceNum().

Referenced by bogotel::CBgtRt::CBgtRt().

std::string bogotel::CUtil::getInstanceNum  ) 
 

Definition at line 90 of file Util.cpp.

References m_iInstanceNum.

Referenced by bogotel::CMsgTransport::init().

int bogotel::CUtil::setIniFilename  )  [protected]
 

Definition at line 99 of file Util.cpp.

References INI_FILENAME, m_strIniFilename, m_strIniFilePath, bogotel::resultERROR, bogotel::resultSUCCESS, and s_arrstrIniLocation.

Referenced by init().

int bogotel::CUtil::setInstanceNum u_short  usPort  )  [protected]
 

Definition at line 121 of file Util.cpp.

References log(), m_iInstanceNum, bogotel::resultSOCKET_IN_USE, and bogotel::resultSUCCESS.

Referenced by init().

int bogotel::CUtil::getStringParm const char *  szFilename,
char *  szName,
char *  szVal
[protected]
 

log4cpp::Priority::PriorityLevel bogotel::CUtil::logLevel2Priority int  iLevel  )  [private]
 

Definition at line 147 of file Util.cpp.

Referenced by log().


Field Documentation

CProperties bogotel::CUtil::m_propIni
 

Definition at line 37 of file Util.h.

Referenced by bogotel::CVoiceDev::attemptRecognition(), init(), and bogotel::CMsgTransport::init().

std::string bogotel::CUtil::m_strIniFilename [protected]
 

Definition at line 40 of file Util.h.

Referenced by init(), and setIniFilename().

int bogotel::CUtil::m_iInstanceNum [protected]
 

Definition at line 41 of file Util.h.

Referenced by getInstanceNum(), and setInstanceNum().

log4cpp::Category* bogotel::CUtil::m_pLogCat [private]
 

Definition at line 49 of file Util.h.

Referenced by init().

std::string bogotel::CUtil::m_strIniFilePath [private]
 

Definition at line 50 of file Util.h.

Referenced by init(), and setIniFilename().

const std::string bogotel::CUtil::s_arrstrIniLocation [static, private]
 

Initial value:

 {
        ".\\",
        "%BOGOTEL_HOME%\\"
    }

Definition at line 25 of file Util.cpp.

Referenced by setIniFilename().


The documentation for this class was generated from the following files:
Generated on Tue Aug 12 12:42:32 2003 for bogotel by doxygen 1.3. Hosted by SourceForge.net Logo