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

IOOp.cpp

Go to the documentation of this file.
00001 /*
00002  * IoOp.cpp
00003  *
00004  * Copyright 2003, MobileSpear Inc. (www.mobilespear.com). All rights reserved.
00005  * Copyright 2003, David Resnick. All rights reserved.
00006  *
00007  * See the file doc\license.txt for the terms of usage and distribution.
00008  */
00009 
00010 #include <bogotel/Portability.h>
00011 #include <bogotel/IOOp.h>
00012 #include <bogotel/util.h>
00013 #include <bogotel/voicedev.h>
00014 #include <bogotel/Timer.h>
00015 
00016 namespace bogotel {
00017 
00018     CIOOp::CIOOp(CVoiceDev* pVD) :
00019     m_pVD(pVD)
00020     {}
00021 
00022     CIOOp::~CIOOp()
00023     {
00024         CTimerTarget::~CTimerTarget();
00025     }
00026 
00027     void CIOOp::terminate(long lTermMsk)
00028     {
00029         char method[] = "CIOOp::terminate";
00030         log(9, "%s: Entered.", method);
00031         m_pVD->terminateIoOp(lTermMsk);
00032     }
00033 
00034     void CIOOp::log(int iLevel, char *szFmt, ...)
00035     {
00036         va_list vl;
00037         char szTemp[2000];
00038 
00039         va_start(vl, szFmt);
00040         _vsnprintf(szTemp, sizeof(szTemp), szFmt, vl);
00041         va_end(vl);
00042 
00043         g_util->log(iLevel, m_pVD->getSignalHandle(), szTemp);
00044     }
00045 
00046 }

Generated on Tue Aug 12 12:41:29 2003 for bogotel by doxygen 1.3. Hosted by SourceForge.net Logo