[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Moss-devel] CVS: moss/colpatik/src/modules/input/include event.h,NONE,1
From: |
Manfred Morgner <address@hidden> |
Subject: |
[Moss-devel] CVS: moss/colpatik/src/modules/input/include event.h,NONE,1.1 filter.h,NONE,1.1 queue.h,NONE,1.1 |
Date: |
Wed, 10 Jul 2002 15:14:42 -0400 |
Update of /cvsroot/moss//moss/colpatik/src/modules/input/include
In directory subversions:/tmp/cvs-serv9682/modules/input/include
Added Files:
event.h filter.h queue.h
Log Message:
added some files for the input module of Colpatik (only some files - nothings
more)
--- NEW FILE ---
/***************************************************************************
event.h
-------------------
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. *
* *
***************************************************************************
*
* Copy constructors and assignment operators will get
* ownership of the given source entity if the source
* is the owner of the data element
*
***************************************************************************/
namespace colpatik
{
struct tagEvent
{
time_t m_tStart;
time_t m_tId;
long m_nType;
void* m_pData;
} TEvent, *PEvent;
class CEvent : public TEvent
{
protected:
static TEvent m_oNoEvent;
protected:
bool m_bDataIsMe;
public:
CEvent();
CEvent( CEvent& src);
CEvent(const TEvent& src);
virtual ~CEvent();
public:
CEvent& operator = ( CEvent& src);
const TEvent& operator = (const TEvent& src);
operator const TEvent& ();
protected:
void Initialize();
}; // CEvent
} // namespace colpatik
--- NEW FILE ---
/***************************************************************************
filter.h
-------------------
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. *
* *
***************************************************************************
*
*
*
***************************************************************************/
#include <string>
#include "event.h"
namespace colpatik
{
typedef long (*fnFilterCallback)(CEvent& roEvent);
class CFilter
{
protected:
fnFilterCallback m_fnCallback;
public:
CFilter();
CFilter(const std::sring& rsFilter);
virtual ~CFilter();
CEvent& operator << (CEvent& roEvent);
protected:
void Initialize();
}; // class CFilter
} // namespace colpatik
--- NEW FILE ---
/***************************************************************************
queue.h
-------------------
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. *
* *
***************************************************************************
*
*
*
***************************************************************************/
#include <queue>
#include "event.h"
namespace colpatik
{
class CQueue : public std::queue<CEvent>
{
protected:
public:
CQueue();
virtual ~CQueue();
CEvent& operator << (CEvent& roEvent);
CEvent& operator >> (CEvent& roEvent);
protected:
void Initialize();
}; // class Filter
} // namespace colpatik
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Moss-devel] CVS: moss/colpatik/src/modules/input/include event.h,NONE,1.1 filter.h,NONE,1.1 queue.h,NONE,1.1,
Manfred Morgner <address@hidden> <=