moss-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Moss-devel] CVS: moss/colpatik/src/modules/input/src event.cxx,NONE,1.1


From: Manfred Morgner <address@hidden>
Subject: [Moss-devel] CVS: moss/colpatik/src/modules/input/src event.cxx,NONE,1.1
Date: Wed, 10 Jul 2002 15:14:38 -0400

Update of /cvsroot/moss//moss/colpatik/src/modules/input/src
In directory subversions:/tmp/cvs-serv9682/modules/input/src

Added Files:
        event.cxx 
Log Message:
added some files for the input module of Colpatik (only some files - nothings 
more)


--- NEW FILE ---
/***************************************************************************
                              event.cxx
                          -------------------
    begin                : Thu Jun 9 2000
    copyright            : (C) 1993..2000 by Manfred Morgner
    email                : address@hidden
 ***************************************************************************/

/***************************************************************************
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
 *   This program is distributed in the hope that it will be useful,       *
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
 *   GNU General Public License for more details.                          *
 *                                                                         *
 *   You should have received a copy of the GNU General Public License     *
 *   along with this program; if not, write to the                         *
 *                                                                         *
 *   Free Software Foundation, Inc.,                                       *
 *   59 Temple Place Suite 330,                                            *
 *   Boston, MA  02111-1307, USA.                                          *
 *                                                                         *
 ***************************************************************************/


using namespace colpatik;

    
CEvent::CEvent()
  {
  Initialze();
  } // 

CEvent::CEvent(CEvent& src)
  {
  Initialze();
  operator = (src);
  } // 

CEvent::CEvent(const TEvent& src)
  {
  Initialze();
  operator = (src);
  } // 

CEvent::~CEvent();
  {
  if (m_bDataIsMe == true)
    {
    delete m_pData;
    } // 
  } // 


// public members

CEvent& CEvent::operator = (CEvent& src)
  {
  if (src.m_bDataIsMe = true)
    {
    m_bDataIsMe     = true;
    src.m_bDataIsMe = false;
    } //
  return *this;
  } // 

const TEvent& CEvent::operator = (const TEvent& src)
  {
  m_tStart = src.m_tStart;
  m_tId    = src.m_tId;
  m_nType  = src.m_nType;
  m_pData  = src.m_pData;
  return (TEvent) *this;
  } // 

CEvent::operator const TEvent ()
  {
  return (TEvent) *this
  } // 

// protected members

void CEvent::Initialize()
  {
  m_tStart    = 0;
  m_tId       = 0;
  m_nType     = T_EVENT_UNKNOWN;
  m_pData     = 0;
  m_bDataIsMe = false;
  } // 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]