[asycxx-devel] SF.net SVN: asycxx:[34] trunk
Status: Alpha
Brought to you by:
joe_steeve
From: <joe...@us...> - 2009-04-08 07:36:35
|
Revision: 34 http://asycxx.svn.sourceforge.net/asycxx/?rev=34&view=rev Author: joe_steeve Date: 2009-04-08 07:36:33 +0000 (Wed, 08 Apr 2009) Log Message: ----------- moved oneliners in MsgHandler.cxx to MsgHandler.h From: Joe Steeve <js...@hi...> Modified Paths: -------------- trunk/include/asycxx/MsgHandler.h Removed Paths: ------------- trunk/src/MsgHandler.cxx Modified: trunk/include/asycxx/MsgHandler.h =================================================================== --- trunk/include/asycxx/MsgHandler.h 2009-04-08 07:35:50 UTC (rev 33) +++ trunk/include/asycxx/MsgHandler.h 2009-04-08 07:36:33 UTC (rev 34) @@ -26,19 +26,26 @@ * \brief The interface of a MsgHandler */ -class MsgHandler +namespace asycxx { -public: - MsgHandler (); - virtual ~MsgHandler (); + class MsgHandler + { + public: + MsgHandler () { m_Bus = NULL; } + virtual ~MsgHandler () {} - void SetMsgBus (MsgBus *bus); - virtual Result GotMsg (DataBuffer *data) = 0; + void SetMsgBus (MsgBus *bus) + { + ASSERT ((bus != NULL), "cannot use a NULL MsgBus"); + m_Bus = bus; + } -protected: - MsgBus *m_Bus; -}; + virtual RetCode GotMsg (DataBuffer *data) = 0; + protected: + MsgBus *m_Bus; + }; +} #endif /* __HIPRO_ASYCXX__MSG_HANDLER_H__ */ /* Deleted: trunk/src/MsgHandler.cxx =================================================================== --- trunk/src/MsgHandler.cxx 2009-04-08 07:35:50 UTC (rev 33) +++ trunk/src/MsgHandler.cxx 2009-04-08 07:36:33 UTC (rev 34) @@ -1,47 +0,0 @@ - -/******************************************************************** - * Copyright (C) 2008,2009 HiPro IT Solutions Pvt. Ltd., Chennai. All - * rights reserved. - * - * This program and the accompanying materials are made available - * under the terms described in the LICENSE file which accompanies - * this distribution. If the LICENSE file was not attached to this - * distribution or for further clarifications, please contact - * le...@hi.... - * - *******************************************************************/ - -#ifdef HAVE_CONFIG_H -#include <asycxx-config.h> -#endif - -#include "asycxx-common.h" -#include <asycxx/Error.h> -#include <asycxx/MsgHandler.h> - -MsgHandler::MsgHandler () -{ - m_Bus = NULL; -} - - -MsgHandler::~MsgHandler () -{ -} - - -void -MsgHandler::SetMsgBus (MsgBus *bus) -{ - ASSERT ((bus != NULL), "cannot use a NULL MsgBus"); - m_Bus = bus; -} - -/* - Local Variables: - mode: c++ - indent-tabs-mode: nil - tab-width: 4 - c-file-style: "gnu" - End: -*/ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |