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 Device.h,NONE,1.1


From: Manfred Morgner <address@hidden>
Subject: [Moss-devel] CVS: moss/colpatik/include/modules/input Device.h,NONE,1.1 DeviceInterrupt.h,NONE,1.1 DevicePoll.h,NONE,1.1 DeviceQuery.h,NONE,1.1 ColpatikDevice.h,1.2,1.3 ColpatikInput.h,1.1,1.2 Makefile.am,1.1,1.2
Date: Mon, 28 Oct 2002 17:42:31 -0500

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

Modified Files:
        ColpatikDevice.h ColpatikInput.h Makefile.am 
Added Files:
        Device.h DeviceInterrupt.h DevicePoll.h DeviceQuery.h 
Log Message:
New classes for input and filter processing. Old files have to be deleted 
(later).


--- NEW FILE ---
/***************************************************************************
                             Device.h
                        -------------------
    begin                : Fri Mar 3 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 __DEVICE_H
#define __DEVICE_H

#if _MSC_VER >= 1000
#  pragma once
#  pragma warning (disable : 4786)
#  endif // _MSC_VER >= 1000

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


#include <string>
#include <list>

#include "API_Device.h"

typedef std::list<colpatik::pfnDeviceCallback> CListCallback;

namespace colpatik
  {

  class CDevice
    {
    protected:
      static long s_nNoValue;

    protected:
      std::string   m_sURI;
      CListCallback m_lpfnDataCallback;
      CListCallback m_lpfnStatusCallback;
      long          m_nError;
      
    public:
               CDevice(std::string sURI = "");
      virtual ~CDevice();

    /*******************************************
     *
     *    interface
     *
     *******************************************/
    public:
      // abstract Interface
      virtual long   GetVersion() = 0;
      virtual long   GetType() = 0;
      virtual double GetPollingIntervall() = 0;
      virtual long   GetCapabilities() = 0;
      virtual long   GetFunctions() = 0;
      virtual void   GetInfo(long& rnVersion,
                             long& rnType,
                             long& rnCapabilities,
                             long& rnFunctions) = 0;
      virtual long   GetData(TDeviceData& rstData) = 0;

    public:
      // virtual Interface
      virtual long GetErrorLast();
      virtual long GetErrorText(std::string& rsError,
                                     long    nError = 0);

      virtual bool CallbackRegister(const pfnDeviceCallback fnCallback,
                                          char              cType = CB_DATA);
      virtual void CallbackFree    (const pfnDeviceCallback fnCallback);

    }; // class CDevice
  } // namespace colpatik
#endif // __DEVICE_H

--- NEW FILE ---
/***************************************************************************
                                                                DevicePoll.h
                                                         -------------------
    begin                : Fri Mar 3 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 __DEVICE_INTERRUPT_H
#define __DEVICE_INTERRUPT_H

#if _MSC_VER >= 1000
#  pragma once
#  pragma warning (disable : 4786)
#  endif // _MSC_VER >= 1000


#if __GNUG__ >= 2
#  pragma interface
#  endif

#include <string>

#include "Device.h"

namespace colpatik
  {
  
  class CDeviceInterrupt : public CDevice
    {
    private:
      typedef CDevice inherited;

    protected:
      time_t m_dTime; // system time
      
    public:
               CDeviceInterrupt(std::string sURI = "");
      virtual ~CDeviceInterrupt();

    /*******************************************
     *
     *    interface
     *
     *******************************************/
    public:
      // abstract Interface
      virtual long   GetVersion();
      virtual long   GetType();
      virtual double GetPollingIntervall();
      virtual long   GetCapabilities();
      virtual long   GetFunctions();
      virtual void   GetInfo(long& rnVersion,
                             long& rnType,
                             long& rnCapabilities,
                             long& rnFunctions);
      virtual long   GetData(TDeviceData& rstData);

    public:
      // virtual Interface
      virtual long GetErrorLast();
      virtual long GetErrorText(std::string& rsError,
                                     long    nError = 0);

      virtual bool CallbackRegister(const pfnDeviceCallback fnCallback,
                                          char              cType = CB_DATA);
      virtual void CallbackFree    (const pfnDeviceCallback fnCallback);
      
    }; // class CDeviceInterrupt
  
  } // namespace colpatik

#endif //  __DEVICE_INTERRUPT_H


--- NEW FILE ---
/***************************************************************************
                                                                DevicePoll.h
                                                         -------------------
    begin                : Fri Mar 3 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 __DEVICE_POLL_H
#define __DEVICE_POLL_H

#if _MSC_VER >= 1000
#  pragma once
#  pragma warning (disable : 4786)
#  endif // _MSC_VER >= 1000

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


#include <string>

#include "Device.h"

namespace colpatik
  {
  
  class CDevicePoll : public CDevice
    {
    private:
      typedef CDevice inherited;

    protected:
      double m_dIntervall; // in ms
      
    public:
               CDevicePoll(std::string sURI = "");
      virtual ~CDevicePoll();
         
    protected:
      
    }; // class CDevicePoll
  
  } // namespace colpatik

#endif //  __DEVICE_POLL_H

--- NEW FILE ---
/***************************************************************************
                                                                DevicePoll.h
                                                         -------------------
    begin                : Fri Mar 3 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 __DEVICE_QUERY_H
#define __DEVICE_QUERY_H

#if _MSC_VER >= 1000
#pragma once
#pragma warning (disable : 4786)
#endif // _MSC_VER >= 1000

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


#include <string>

#include "Device.h"

namespace colpatik
  {
  
  class CDeviceQuery : public CDevice
    {
    private:
      typedef CDevice inherited;

    protected:
      double m_dTimeout; // in ms
      
    public:
               CDeviceQuery(std::string sURI = "");
      virtual ~CDeviceQuery();
         //  virtual ~CDeviceQuery();
         
    protected:
      
    }; // class CDeviceQuery
  
  } // namespace colpatik

#endif //  __DEVICE_QUERY_H

Index: ColpatikDevice.h
===================================================================
RCS file: /cvsroot/moss//moss/colpatik/include/modules/input/ColpatikDevice.h,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -r1.2 -r1.3
*** ColpatikDevice.h    12 Jul 2002 22:04:47 -0000      1.2
--- ColpatikDevice.h    28 Oct 2002 22:42:29 -0000      1.3
***************
*** 36,45 ****
  
  #if _MSC_VER >= 1000
! #pragma once
! #endif // _MSC_VER >= 1000
  
  #if __GNU__ >= 2
  #  pragma interface
! #endif // #if __GNU__ >= 2
  
  
--- 36,46 ----
  
  #if _MSC_VER >= 1000
! #  pragma once
! #  pragma warning (disable: 4786)
! #  endif // _MSC_VER >= 1000
  
  #if __GNU__ >= 2
  #  pragma interface
! #  endif // #if __GNU__ >= 2
  
  

Index: ColpatikInput.h
===================================================================
RCS file: /cvsroot/moss//moss/colpatik/include/modules/input/ColpatikInput.h,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** ColpatikInput.h     12 Jul 2002 21:54:12 -0000      1.1
--- ColpatikInput.h     28 Oct 2002 22:42:29 -0000      1.2
***************
*** 36,47 ****
  
  #if _MSC_VER >= 1000
! #pragma once
! #endif // _MSC_VER >= 1000
  
  #if __GNU__ >= 2
  #  pragma interface
! #endif // #if __GNU__ >= 2
! 
! #pragma warning (disable : 4786)
  
  
--- 36,46 ----
  
  #if _MSC_VER >= 1000
! #  pragma once
! #  pragma warning (disable : 4786)
! #  endif // _MSC_VER >= 1000
  
  #if __GNU__ >= 2
  #  pragma interface
! #  endif // #if __GNU__ >= 2
  
  

Index: Makefile.am
===================================================================
RCS file: /cvsroot/moss//moss/colpatik/include/modules/input/Makefile.am,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** Makefile.am 13 Jul 2002 14:07:39 -0000      1.1
--- Makefile.am 28 Oct 2002 22:42:29 -0000      1.2
***************
*** 5,11 ****
  install-data-local:
        $(mkinstalldirs) $(prefix)/include/3Dsia/modules/input
!       $(INSTALL_DATA) ColpatikDevice.h 
$(prefix)/include/3Dsia/modules/input/ColpatikDevice.h
!       $(INSTALL_DATA) ColpatikInput.h 
$(prefix)/include/3Dsia/modules/input/ColpatikInput.h
!       $(INSTALL_DATA) Event.h $(prefix)/include/3Dsia/modules/input/Event.h
!       $(INSTALL_DATA) Queue.h $(prefix)/include/3Dsia/modules/input/Queue.h
! 
--- 5,14 ----
  install-data-local:
        $(mkinstalldirs) $(prefix)/include/3Dsia/modules/input
!       $(INSTALL_DATA) ColpatikDevice.h  
$(prefix)/include/3Dsia/modules/input/ColpatikDevice.h
!       $(INSTALL_DATA) ColpatikInput.h   
$(prefix)/include/3Dsia/modules/input/ColpatikInput.h
!       $(INSTALL_DATA) Event.h           
$(prefix)/include/3Dsia/modules/input/Event.h
!       $(INSTALL_DATA) Queue.h           
$(prefix)/include/3Dsia/modules/input/Queue.h
!       $(INSTALL_DATA) Device.h          
$(prefix)/include/3Dsia/modules/input/Device.h
!       $(INSTALL_DATA) DevicePoll.h      
$(prefix)/include/3Dsia/modules/input/DevicePoll.h
!       $(INSTALL_DATA) DeviceQuery.h     
$(prefix)/include/3Dsia/modules/input/DeviceQuery.h
!       $(INSTALL_DATA) DeviceInterrupt.h 
$(prefix)/include/3Dsia/modules/input/DeviceInterrupt.h





reply via email to

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