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

DevBase.cpp

Go to the documentation of this file.
00001 /*
00002  * DevBase.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/DevBase.h>
00012 #include <bogotel/BgtErrors.h>
00013 #include <bogotel/MsgTransport.h>
00014 
00015 namespace bogotel {
00016 
00017     CMsgTransport *CDevBase::m_pTransport = NULL;
00018     CTimer *CDevBase::m_pTimer = NULL;
00019 
00020     CDevBase::CDevBase(CBgtRt *pBgtRt) :
00021     m_lId(0)
00022     {
00023         m_pBgtRt = pBgtRt;
00024     }
00025 
00026     CDevBase::~CDevBase()
00027     {
00028         if (m_pMsg) {
00029             delete m_pMsg;
00030             m_pMsg = NULL;
00031         }
00032     }
00033 
00034     int CDevBase::init()
00035     {
00036         m_pMsg = (CMsg *)new CMsg();
00037         if (m_pMsg == NULL) {
00038             return resultNOTENOUGHMEMORY;
00039         }
00040         return resultSUCCESS;
00041     }
00042 
00043 }

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