moss-devel
[Top][All Lists]
Advanced

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

[Moss-devel] CVS: moss/colpatik/include/modules/input ColpatikDevice.h,N


From: Manfred Morgner <address@hidden>
Subject: [Moss-devel] CVS: moss/colpatik/include/modules/input ColpatikDevice.h,NONE,1.1 ColpatikInput.h,NONE,1.1 Event.h,NONE,1.1 Queue.h,NONE,1.1
Date: Fri, 12 Jul 2002 17:54:15 -0400

Update of /cvsroot/moss//moss/colpatik/include/modules/input
In directory subversions:/tmp/cvs-serv21429/include/modules/input

Added Files:
        ColpatikDevice.h ColpatikInput.h Event.h Queue.h 
Log Message:
Added some files for Colpatik


--- NEW FILE ---
/***************************************************************************
                            ColpatikDevice.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.                                          *
 *                                                                         *
 ***************************************************************************
 *
 *
 *
 ***************************************************************************/

#ifndef __COLPATIK_DEVICE_H
#define __COLPATIK_DEVICE_H

#if _MSC_VER >= 1000
#pragma once
#endif // _MSC_VER >= 1000

#if __GNU__ >= 2
#  pragma interface
#endif // #if __GNU__ >= 2




namespace colpatik
  {
  
  class CColpatikDevice
    {
    public:
               CColpatikDevice();
      virtual ~CColpatikDevice();
      
      
    }; // class CColpatikDevice
  
  } // namespace colpatik

#endif // __COLPATIK_DEVICE_H

--- NEW FILE ---
/***************************************************************************
                            ColpatikInput.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.                                          *
 *                                                                         *
 ***************************************************************************
 *
 *
 *
 ***************************************************************************/

#ifndef __COLPATIK_INPUT_H
#define __COLPATIK_INPUT_H

#if _MSC_VER >= 1000
#pragma once
#endif // _MSC_VER >= 1000

#if __GNU__ >= 2
#  pragma interface
#endif // #if __GNU__ >= 2

#pragma warning (disable : 4786)



#include <list>
#include <string>


#include "ColpatikDevice.h"

namespace colpatik
  {
  typedef std::list<std::string> CListString;
  typedef std::list<colpatik::CColpatikDevice*> CListPDevice;

  class CColpatikInput  
    {
    protected:
      CListString  m_lsDriverList;
      CListPDevice m_lpoDevicesPoll;
      CListPDevice m_lpoDevicesInterrupt;

    private:
      static void Action(void* pData);

    public:
               CColpatikInput();
      virtual ~CColpatikInput();

      bool               DriverAdd   (const std::string& sDriver);
      bool               DriverRemove(const std::string& sDriver);
      const CListString& DriverList  ();

      void LoadDevices();
      void Run();


    protected:
      void Initialize();
      bool DriversLoad();
    
    }; // class CColpatikInput  

  #endif // __COLPATIK_INPUT_H

  } // namespace colpatik

--- 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
 *
 ***************************************************************************/

#ifndef __EVENT_H
#define __EVENT_H

#if _MSC_VER >= 1000
#pragma once
#endif // _MSC_VER >= 1000

#if __GNU__ >= 2
#  pragma interface
#endif // #if __GNU__ >= 2

#pragma warning (disable : 4786)


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

#endif // __EVENT_H

--- 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.                                          *
 *                                                                         *
 ***************************************************************************
 *
 *
 *
 ***************************************************************************/

#ifndef __QUEUE_H
#define __QUEUE_H

#if _MSC_VER >= 1000
#pragma once
#endif // _MSC_VER >= 1000

#if __GNU__ >= 2
#  pragma interface
#endif // #if __GNU__ >= 2

#pragma warning (disable : 4786)



#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

#endif // __QUEUE_H




reply via email to

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