[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Moss-devel] CVS: moss/colpatik/src/modules/input ColpatikInput.cxx,1.5,
From: |
Manfred Morgner <address@hidden> |
Subject: |
[Moss-devel] CVS: moss/colpatik/src/modules/input ColpatikInput.cxx,1.5,1.6 Device.cxx,1.3,1.4 DeviceInterrupt.cxx,1.3,1.4 DevicePoll.cxx,1.2,1.3 DeviceQuery.cxx,1.2,1.3 Event.cxx,1.6,1.7 Queue.cxx,1.5,1.6 |
Date: |
Wed, 30 Oct 2002 18:35:55 -0500 |
Update of /cvsroot/moss//moss/colpatik/src/modules/input
In directory subversions:/tmp/cvs-serv4779/src/modules/input
Modified Files:
ColpatikInput.cxx Device.cxx DeviceInterrupt.cxx
DevicePoll.cxx DeviceQuery.cxx Event.cxx Queue.cxx
Log Message:
Check under and back-port to Win32
Index: ColpatikInput.cxx
===================================================================
RCS file: /cvsroot/moss//moss/colpatik/src/modules/input/ColpatikInput.cxx,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -r1.5 -r1.6
*** ColpatikInput.cxx 30 Oct 2002 01:48:48 -0000 1.5
--- ColpatikInput.cxx 30 Oct 2002 23:35:53 -0000 1.6
***************
*** 1,159 ****
! /***************************************************************************
! ColpatikInput.cpp
! -------------------
! begin : Thu June 2 2002
! copyright : (C) 2002 Manfrred 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. *
! * *
! ***************************************************************************
!
!
! COLPATIK
!
! A messaging system supporting input and output devices on the one hand
! and output and input application channels on the other hand.
!
! Colpatik is only one possible module to control a 3dsia matrix server.
! Other modules, like specific daemons, are possible and welcome.
!
!
! This file:
!
! colpatik::CColpatikInput
!
! Implements the input class to support input device drivers of three kinds.
!
! (1) Polling devices
! (2) Interrupting devices
! (3) Querying devices
!
! CColpatikInput uses two methods to support these devices.
!
! Polling devices are supported by an static "Action(..) - Methode". This
! methode polls all registered polling devices and inserts the events or
! messages into an output queue that is accessiable from the outside of the
! class.
!
! Querying devices are similiar to polling devices, but they don't return
! from an call until there is an event. So, they have to use threads to
! enable multiple devices in one single device queue.
!
! Interrupting devices get a unique queue for each device to hold the
! incoming messages. These queues are handled as "polling devices".
!
! Requisites:
!
! The input devices are represented by object instances based on the type
! colpatik::CColpatikDevice and stored as pointers in two pointer lists
! dependend of the driver cathegory.
!
!
! ***************************************************************************/
!
!
! #include "ColpatikInput.h"
!
!
! using namespace std;
! using namespace colpatik;
!
! //////////////////////////////////////////////////////////////////////
! // static members
! //////////////////////////////////////////////////////////////////////
!
! void CColpatikInput::Action(void* pData)
! {
! } // static void CColpatikInput::Run(void* pData)
!
!
! //////////////////////////////////////////////////////////////////////
! // Construction/Destruction
! //////////////////////////////////////////////////////////////////////
!
! CColpatikInput::CColpatikInput()
! {
!
! } // CColpatikInput::CColpatikInput()
!
! CColpatikInput::~CColpatikInput()
! {
!
! } // CColpatikInput::~CColpatikInput()
!
! //////////////////////////////////////////////////////////////////////
! // public members
! //////////////////////////////////////////////////////////////////////
!
!
! void CColpatikInput::LoadDevices()
! {
! /*
! while (...)
! {
! m_lpoDevicesPoll.append(new CDevice???);
! }
!
! */
!
!
! /*
! while (...)
! {
! m_lpoDevicesInterrupt.append(new CDevice???);
! }
!
! */
! } // void CColpatikInput::LoadDevices()
!
! void CColpatikInput::Run()
! {
! } // void CColpatikInput::Run()
!
!
! bool CColpatikInput::DriverAdd(const string& sDriver)
! {
! return false;
! } // bool CColpatikInput::DriverAdd(const string& sDriver)
!
! bool CColpatikInput::DriverRemove(const string& sDriver)
! {
! return false;
! } // bool CColpatikInput::DriverRemove(const string& sDriver)
!
! const CListString& CColpatikInput::DriverList()
! {
! return m_lsDriverList;
! } // CStringList CColpatikInput::DriverList()
!
!
! //////////////////////////////////////////////////////////////////////
! // protected members
! //////////////////////////////////////////////////////////////////////
!
! void CColpatikInput::Initialize()
! {
! } // void CColpatikInput::Initialize()
!
! bool CColpatikInput::DriversLoad()
! {
! return false;
! } // bool CColpatikInput::DriversLoad()
--- 1,159 ----
! /***************************************************************************
! ColpatikInput.cpp
! -------------------
! begin : Thu June 2 2002
! copyright : (C) 2002 Manfrred 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. *
! * *
! ***************************************************************************
!
!
! COLPATIK
!
! A messaging system supporting input and output devices on the one hand
! and output and input application channels on the other hand.
!
! Colpatik is only one possible module to control a 3dsia matrix server.
! Other modules, like specific daemons, are possible and welcome.
!
!
! This file:
!
! colpatik::CColpatikInput
!
! Implements the input class to support input device drivers of three kinds.
!
! (1) Polling devices
! (2) Interrupting devices
! (3) Querying devices
!
! CColpatikInput uses two methods to support these devices.
!
! Polling devices are supported by an static "Action(..) - Methode". This
! methode polls all registered polling devices and inserts the events or
! messages into an output queue that is accessiable from the outside of the
! class.
!
! Querying devices are similiar to polling devices, but they don't return
! from an call until there is an event. So, they have to use threads to
! enable multiple devices in one single device queue.
!
! Interrupting devices get a unique queue for each device to hold the
! incoming messages. These queues are handled as "polling devices".
!
! Requisites:
!
! The input devices are represented by object instances based on the type
! colpatik::CColpatikDevice and stored as pointers in two pointer lists
! dependend of the driver cathegory.
!
!
! ***************************************************************************/
!
!
! #include "ColpatikInput.h"
!
!
! using namespace std;
! using namespace colpatik;
!
! //////////////////////////////////////////////////////////////////////
! // static members
! //////////////////////////////////////////////////////////////////////
!
! void CColpatikInput::Action(void* pData)
! {
! } // static void CColpatikInput::Run(void* pData)
!
!
! //////////////////////////////////////////////////////////////////////
! // Construction/Destruction
! //////////////////////////////////////////////////////////////////////
!
! CColpatikInput::CColpatikInput()
! {
!
! } // CColpatikInput::CColpatikInput()
!
! CColpatikInput::~CColpatikInput()
! {
!
! } // CColpatikInput::~CColpatikInput()
!
! //////////////////////////////////////////////////////////////////////
! // public members
! //////////////////////////////////////////////////////////////////////
!
!
! void CColpatikInput::LoadDevices()
! {
! /*
! while (...)
! {
! m_lpoDevicesPoll.append(new CDevice???);
! }
!
! */
!
!
! /*
! while (...)
! {
! m_lpoDevicesInterrupt.append(new CDevice???);
! }
!
! */
! } // void CColpatikInput::LoadDevices()
!
! void CColpatikInput::Run()
! {
! } // void CColpatikInput::Run()
!
!
! bool CColpatikInput::DriverAdd(const string& sDriver)
! {
! return false;
! } // bool CColpatikInput::DriverAdd(const string& sDriver)
!
! bool CColpatikInput::DriverRemove(const string& sDriver)
! {
! return false;
! } // bool CColpatikInput::DriverRemove(const string& sDriver)
!
! const CListString& CColpatikInput::DriverList()
! {
! return m_lsDriverList;
! } // CStringList CColpatikInput::DriverList()
!
!
! //////////////////////////////////////////////////////////////////////
! // protected members
! //////////////////////////////////////////////////////////////////////
!
! void CColpatikInput::Initialize()
! {
! } // void CColpatikInput::Initialize()
!
! bool CColpatikInput::DriversLoad()
! {
! return false;
! } // bool CColpatikInput::DriversLoad()
Index: Device.cxx
===================================================================
RCS file: /cvsroot/moss//moss/colpatik/src/modules/input/Device.cxx,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -r1.3 -r1.4
*** Device.cxx 30 Oct 2002 02:06:12 -0000 1.3
--- Device.cxx 30 Oct 2002 23:35:53 -0000 1.4
***************
*** 1,89 ****
! /***************************************************************************
! Device.cxx
! -------------------
! 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. *
! * *
! ***************************************************************************/
!
!
! #include <string>
!
! #include "Device.h"
!
! using namespace std;
! using namespace colpatik;
!
! long CDevice::s_nNoValue = -1;
!
!
! CDevice::CDevice(const string& rsURI) //why not string&?
! {
! m_sURI = rsURI;
! m_nError = 0;
! } // CDevice::CDevice(const string& rsURI)
!
! CDevice::~CDevice()
! {
! } // CDevice::~CDevice()
!
! long CDevice::GetErrorLast()
! {
! return m_nError;
! } // long CDevice::GetErrorLast()
!
! long CDevice::GetErrorText(string& rsError, long nError)
! {
! rsError = "unknown error";
! return 0;
! } // long CDevice::GetErrorText(string& rsError, long nError)
!
! bool CDevice::CallbackRegister(const pfnDeviceCallback fnCallback, char cType)
! {
! if (0 == fnCallback)
! {
! return false;
! }
!
! switch (cType)
! {
! case CB_DATA:
! m_lpfnCallbackData.push_back(fnCallback);
! return true;
! break;
! case CB_STATUS:
! m_lpfnCallbackStatus.push_back(fnCallback);
! return true;
! break;
! } // switch (cType)
!
! return false;
! } // bool CDevice::CallbackRegister(const pfnCallback fnCallback, char
cType)
!
! void CDevice::CallbackFree(const pfnDeviceCallback fnCallback)
! {
! m_lpfnCallbackData.remove(fnCallback);
! m_lpfnCallbackStatus.remove(fnCallback);
! } // void CDevice::CallbackFree(const pfnCallback fnCallback)
!
--- 1,89 ----
! /***************************************************************************
! Device.cxx
! -------------------
! 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. *
! * *
! ***************************************************************************/
!
!
! #include <string>
!
! #include "Device.h"
!
! using namespace std;
! using namespace colpatik;
!
! long CDevice::s_nNoValue = -1;
!
!
! CDevice::CDevice(const string& rsURI) //why not string&?
! {
! m_sURI = rsURI;
! m_nError = 0;
! } // CDevice::CDevice(const string& rsURI)
!
! CDevice::~CDevice()
! {
! } // CDevice::~CDevice()
!
! long CDevice::GetErrorLast()
! {
! return m_nError;
! } // long CDevice::GetErrorLast()
!
! long CDevice::GetErrorText(string& rsError, long nError)
! {
! rsError = "unknown error";
! return 0;
! } // long CDevice::GetErrorText(string& rsError, long nError)
!
! bool CDevice::CallbackRegister(const pfnDeviceCallback fnCallback, char cType)
! {
! if (0 == fnCallback)
! {
! return false;
! }
!
! switch (cType)
! {
! case CB_DATA:
! m_lpfnCallbackData.push_back(fnCallback);
! return true;
! break;
! case CB_STATUS:
! m_lpfnCallbackStatus.push_back(fnCallback);
! return true;
! break;
! } // switch (cType)
!
! return false;
! } // bool CDevice::CallbackRegister(const pfnCallback fnCallback, char
cType)
!
! void CDevice::CallbackFree(const pfnDeviceCallback fnCallback)
! {
! m_lpfnCallbackData.remove(fnCallback);
! m_lpfnCallbackStatus.remove(fnCallback);
! } // void CDevice::CallbackFree(const pfnCallback fnCallback)
!
Index: DeviceInterrupt.cxx
===================================================================
RCS file: /cvsroot/moss//moss/colpatik/src/modules/input/DeviceInterrupt.cxx,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -r1.3 -r1.4
*** DeviceInterrupt.cxx 30 Oct 2002 02:06:12 -0000 1.3
--- DeviceInterrupt.cxx 30 Oct 2002 23:35:53 -0000 1.4
***************
*** 1,111 ****
! /***************************************************************************
! DeviceInterrupt.cxx
! -------------------
! 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. *
! * *
! ***************************************************************************/
!
! #include <string>
!
! #include "DeviceInterrupt.h"
!
! using namespace std;
! using namespace colpatik;
!
! CDeviceInterrupt::CDeviceInterrupt(const string& rsURI)
! : inherited(rsURI)
! {
! } // CDeviceInterrupt::CDeviceInterrupt(const string& rsURI)
!
! CDeviceInterrupt::~CDeviceInterrupt()
! {
! } // CDeviceInterrupt::~CDeviceInterrupt()
!
! /*******************************************
! *
! * interface
! *
! *******************************************/
!
! // abstract Interface
!
! long CDeviceInterrupt::GetVersion()
! {
! return s_nNoValue;
! } //
!
! long CDeviceInterrupt::GetType()
! {
! return s_nNoValue;
! } //
!
! double CDeviceInterrupt::GetPollingIntervall()
! {
! return 0;
! } //
!
! long CDeviceInterrupt::GetCapabilities()
! {
! return s_nNoValue;
! } //
!
! long CDeviceInterrupt::GetFunctions()
! {
! return s_nNoValue;
! } //
!
! void CDeviceInterrupt::GetInfo(long& rnVersion,
! long& rnType,
! long& rnCapabilities,
! long& rnFunctions)
! {
! } //
!
! long CDeviceInterrupt::GetData(TDeviceData& rstData)
! {
! return s_nNoValue;
! } //
!
! // virtual Interface
!
! long CDeviceInterrupt::GetErrorLast()
! {
! return s_nNoValue;
! } //
!
! long CDeviceInterrupt::GetErrorText(string& rsError, long nError)
! {
! return s_nNoValue;
! } //
!
! bool CDeviceInterrupt::CallbackRegister(const pfnDeviceCallback fnCallback,
char cType)
! {
! return false;
! } //
!
! void CDeviceInterrupt::CallbackFree(const pfnDeviceCallback fnCallback)
! {
! } //
!
--- 1,111 ----
! /***************************************************************************
! DeviceInterrupt.cxx
! -------------------
! 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. *
! * *
! ***************************************************************************/
!
! #include <string>
!
! #include "DeviceInterrupt.h"
!
! using namespace std;
! using namespace colpatik;
!
! CDeviceInterrupt::CDeviceInterrupt(const string& rsURI)
! : inherited(rsURI)
! {
! } // CDeviceInterrupt::CDeviceInterrupt(const string& rsURI)
!
! CDeviceInterrupt::~CDeviceInterrupt()
! {
! } // CDeviceInterrupt::~CDeviceInterrupt()
!
! /*******************************************
! *
! * interface
! *
! *******************************************/
!
! // abstract Interface
!
! long CDeviceInterrupt::GetVersion()
! {
! return s_nNoValue;
! } // long CDeviceInterrupt::GetVersion()
!
! long CDeviceInterrupt::GetType()
! {
! return s_nNoValue;
! } // long CDeviceInterrupt::GetType()
!
! double CDeviceInterrupt::GetPollingIntervall()
! {
! return 0;
! } // double CDeviceInterrupt::GetPollingIntervall()
!
! long CDeviceInterrupt::GetCapabilities()
! {
! return s_nNoValue;
! } // long CDeviceInterrupt::GetCapabilities()
!
! long CDeviceInterrupt::GetFunctions()
! {
! return s_nNoValue;
! } // long CDeviceInterrupt::GetFunctions()
!
! void CDeviceInterrupt::GetInfo(long& rnVersion,
! long& rnType,
! long& rnCapabilities,
! long& rnFunctions)
! {
! } // void CDeviceInterrupt::GetInfo(long& rnVersion, ..
!
! long CDeviceInterrupt::GetData(TDeviceData& rstData)
! {
! return s_nNoValue;
! } // long CDeviceInterrupt::GetData(TDeviceData& rstData)
!
! // virtual Interface
! /*
! long CDeviceInterrupt::GetErrorLast()
! {
! return s_nNoValue;
! } // long CDeviceInterrupt::GetErrorLast()
!
! long CDeviceInterrupt::GetErrorText(string& rsError, long nError)
! {
! return s_nNoValue;
! } // long CDeviceInterrupt::GetErrorText(string& rsError, long nError)
!
! bool CDeviceInterrupt::CallbackRegister(const pfnDeviceCallback fnCallback,
char cType)
! {
! return false;
! } // bool CDeviceInterrupt::CallbackRegister(const pfnDeviceCallback
fnCallback, char cType)
!
! void CDeviceInterrupt::CallbackFree(const pfnDeviceCallback fnCallback)
! {
! } // void CDeviceInterrupt::CallbackFree(const pfnDeviceCallback fnCallback)
! */
Index: DevicePoll.cxx
===================================================================
RCS file: /cvsroot/moss//moss/colpatik/src/modules/input/DevicePoll.cxx,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -r1.2 -r1.3
*** DevicePoll.cxx 30 Oct 2002 01:48:48 -0000 1.2
--- DevicePoll.cxx 30 Oct 2002 23:35:53 -0000 1.3
***************
*** 1,45 ****
! /***************************************************************************
! DevicePoll.cxx
! -------------------
! 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. *
! * *
! ***************************************************************************/
!
! #include <string>
!
! #include "DevicePoll.h"
!
! using namespace std;
! using namespace colpatik;
!
! CDevicePoll::CDevicePoll(const string& rsURI)
! : inherited(rsURI)
! {
! } // CDevicePoll::CDevicePoll(const string& rsURI)
!
! CDevicePoll::~CDevicePoll()
! {
! } // CDevicePoll::~CDevicePoll()
!
--- 1,112 ----
! /***************************************************************************
! DevicePoll.cxx
! -------------------
! 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. *
! * *
! ***************************************************************************/
!
! #include <string>
!
! #include "DevicePoll.h"
!
! using namespace std;
! using namespace colpatik;
!
! CDevicePoll::CDevicePoll(const string& rsURI)
! : inherited(rsURI)
! {
! } // CDevicePoll::CDevicePoll(const string& rsURI)
!
! CDevicePoll::~CDevicePoll()
! {
! } // CDevicePoll::~CDevicePoll()
!
!
! /*******************************************
! *
! * interface
! *
! *******************************************/
!
! // abstract Interface
!
! long CDevicePoll::GetVersion()
! {
! return s_nNoValue;
! } // long CDevicePoll::GetVersion()
!
! long CDevicePoll::GetType()
! {
! return s_nNoValue;
! } // long CDevicePoll::GetType()
!
! double CDevicePoll::GetPollingIntervall()
! {
! return 0;
! } // double CDevicePoll::GetPollingIntervall()
!
! long CDevicePoll::GetCapabilities()
! {
! return s_nNoValue;
! } // long CDevicePoll::GetCapabilities()
!
! long CDevicePoll::GetFunctions()
! {
! return s_nNoValue;
! } // long CDevicePoll::GetFunctions()
!
! void CDevicePoll::GetInfo(long& rnVersion,
! long& rnType,
! long& rnCapabilities,
! long& rnFunctions)
! {
! } // void CDevicePoll::GetInfo(long& rnVersion, ..
!
! long CDevicePoll::GetData(TDeviceData& rstData)
! {
! return s_nNoValue;
! } // long CDevicePoll::GetData(TDeviceData& rstData)
!
! // virtual Interface
! /*
! long CDevicePoll::GetErrorLast()
! {
! return s_nNoValue;
! } // long CDevicePoll::GetErrorLast()
!
! long CDevicePoll::GetErrorText(string& rsError, long nError)
! {
! return s_nNoValue;
! } // long CDevicePoll::GetErrorText(string& rsError, long nError)
!
! bool CDevicePoll::CallbackRegister(const pfnDeviceCallback fnCallback, char
cType)
! {
! return false;
! } // bool CDevicePoll::CallbackRegister(const pfnDeviceCallback fnCallback,
char cType)
!
! void CDevicePoll::CallbackFree(const pfnDeviceCallback fnCallback)
! {
! } // void CDevicePoll::CallbackFree(const pfnDeviceCallback fnCallback)
! */
Index: DeviceQuery.cxx
===================================================================
RCS file: /cvsroot/moss//moss/colpatik/src/modules/input/DeviceQuery.cxx,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -r1.2 -r1.3
*** DeviceQuery.cxx 30 Oct 2002 01:48:48 -0000 1.2
--- DeviceQuery.cxx 30 Oct 2002 23:35:53 -0000 1.3
***************
*** 1,45 ****
! /***************************************************************************
! DeviceQuery.cxx
! -------------------
! 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. *
! * *
! ***************************************************************************/
!
! #include <string>
!
! #include "DeviceQuery.h"
!
! using namespace std;
! using namespace colpatik;
!
! CDeviceQuery::CDeviceQuery(const string& rsURI)
! : inherited(rsURI)
! {
! } // CDeviceQuery::CDeviceQuery(const string& rsURI)
!
! CDeviceQuery::~CDeviceQuery()
! {
! } // CDeviceQuery::~CDeviceQuery()
!
--- 1,112 ----
! /***************************************************************************
! DeviceQuery.cxx
! -------------------
! 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. *
! * *
! ***************************************************************************/
!
! #include <string>
!
! #include "DeviceQuery.h"
!
! using namespace std;
! using namespace colpatik;
!
! CDeviceQuery::CDeviceQuery(const string& rsURI)
! : inherited(rsURI)
! {
! } // CDeviceQuery::CDeviceQuery(const string& rsURI)
!
! CDeviceQuery::~CDeviceQuery()
! {
! } // CDeviceQuery::~CDeviceQuery()
!
!
! /*******************************************
! *
! * interface
! *
! *******************************************/
!
! // abstract Interface
!
! long CDeviceQuery::GetVersion()
! {
! return s_nNoValue;
! } // long CDeviceQuery::GetVersion()
!
! long CDeviceQuery::GetType()
! {
! return s_nNoValue;
! } // long CDeviceQuery::GetType()
!
! double CDeviceQuery::GetPollingIntervall()
! {
! return 0;
! } // double CDeviceQuery::GetPollingIntervall()
!
! long CDeviceQuery::GetCapabilities()
! {
! return s_nNoValue;
! } // long CDeviceQuery::GetCapabilities()
!
! long CDeviceQuery::GetFunctions()
! {
! return s_nNoValue;
! } // long CDeviceQuery::GetFunctions()
!
! void CDeviceQuery::GetInfo(long& rnVersion,
! long& rnType,
! long& rnCapabilities,
! long& rnFunctions)
! {
! } // void CDeviceQuery::GetInfo(long& rnVersion, ..
!
! long CDeviceQuery::GetData(TDeviceData& rstData)
! {
! return s_nNoValue;
! } // long CDeviceQuery::GetData(TDeviceData& rstData)
!
! // virtual Interface
! /*
! long CDeviceQuery::GetErrorLast()
! {
! return s_nNoValue;
! } // long CDeviceQuery::GetErrorLast()
!
! long CDeviceQuery::GetErrorText(string& rsError, long nError)
! {
! return s_nNoValue;
! } // long CDeviceQuery::GetErrorText(string& rsError, long nError)
!
! bool CDeviceQuery::CallbackRegister(const pfnDeviceCallback fnCallback, char
cType)
! {
! return false;
! } // bool CDeviceQuery::CallbackRegister(const pfnDeviceCallback
fnCallback, char cType)
!
! void CDeviceQuery::CallbackFree(const pfnDeviceCallback fnCallback)
! {
! } // void CDeviceQuery::CallbackFree(const pfnDeviceCallback fnCallback)
! */
Index: Event.cxx
===================================================================
RCS file: /cvsroot/moss//moss/colpatik/src/modules/input/Event.cxx,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -r1.6 -r1.7
*** Event.cxx 30 Oct 2002 01:48:48 -0000 1.6
--- Event.cxx 30 Oct 2002 23:35:53 -0000 1.7
***************
*** 1,95 ****
! /***************************************************************************
! 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. *
! * *
! ***************************************************************************/
!
!
! #include "modules/input/Event.h"
! using namespace colpatik;
!
!
! CEvent::CEvent()
! {
! Initialize();
! } // CEvent::CEvent()
!
! CEvent::CEvent(CEvent& src)
! {
! Initialize();
! operator = (src);
! } // CEvent::CEvent(CEvent& src)
!
! CEvent::CEvent(const TEvent& src)
! {
! Initialize();
! operator = (src);
! } // CEvent::CEvent(const TEvent& src)
!
! CEvent::~CEvent()
! {
! if (m_bDataIsMe == true)
! {
! delete m_pData;
! } // if (m_bDataIsMe == true)
! } // CEvent::~CEvent()
!
! ///////////////////////////////////////////////////
! // public members
! ///////////////////////////////////////////////////
!
! CEvent& CEvent::operator = (CEvent& src)
! {
! if (src.m_bDataIsMe = true)
! {
! m_bDataIsMe = true;
! src.m_bDataIsMe = false;
! } // if (src.m_bDataIsMe = true)
! return *this;
! } // CEvent& CEvent::operator = (CEvent& src)
!
! 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);
! } // const TEvent& CEvent::operator = (const TEvent& src)
!
! ///////////////////////////////////////////////////
! // protected members
! ///////////////////////////////////////////////////
!
! void CEvent::Initialize()
! {
! m_tStart = 0;
! m_tId = 0;
! m_nType = T_EVENT_UNKNOWN;
! m_pData = 0;
! m_bDataIsMe = false;
! } // void CEvent::Initialize()
!
--- 1,117 ----
! /***************************************************************************
! 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. *
! * *
! ***************************************************************************/
!
!
! #include "Event.h"
!
!
! using namespace colpatik;
!
!
! // static member(s)
! // tStart; tId; nType; pData;
! TEvent CEvent::m_oNoEvent = { 0, 0, T_EVENT_UNKNOWN, 0 };
!
!
! // operators
! bool operator < (const TEvent& e1, const TEvent& e2)
! {
! return e1.m_tStart < e2.m_tStart;
! } // bool operator < (const TEvent& e1, const TEvent& e2)
!
! bool operator == (const TEvent& e1, const TEvent& e2)
! {
! return e1.m_tStart == e2.m_tStart;
! } // bool operator == (const TEvent& e1, const TEvent& e2)
!
!
! // constructors / destructor
!
! CEvent::CEvent()
! {
! Initialize();
! } // CEvent::CEvent()
!
! CEvent::CEvent(CEvent& src)
! {
! Initialize();
! operator = (src);
! } // CEvent::CEvent(CEvent& src)
!
! CEvent::CEvent(const TEvent& src)
! {
! Initialize();
! operator = (src);
! } // CEvent::CEvent(const TEvent& src)
!
! CEvent::~CEvent()
! {
! if (m_bDataIsMe == true)
! {
! delete m_pData;
! m_pData = 0;
! } // if (m_bDataIsMe == true)
! } // CEvent::~CEvent()
!
! ///////////////////////////////////////////////////
! // public members
! ///////////////////////////////////////////////////
!
! CEvent& CEvent::operator = (CEvent& src)
! {
! if (src.m_bDataIsMe = true)
! {
! m_bDataIsMe = true;
! src.m_bDataIsMe = false;
! } // if (src.m_bDataIsMe = true)
! return *this;
! } // CEvent& CEvent::operator = (CEvent& src)
!
! 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);
! } // const TEvent& CEvent::operator = (const TEvent& src)
!
! ///////////////////////////////////////////////////
! // protected members
! ///////////////////////////////////////////////////
!
! void CEvent::Initialize()
! {
! m_tStart = 0;
! m_tId = 0;
! m_nType = T_EVENT_UNKNOWN;
! m_pData = 0;
! m_bDataIsMe = false;
! } // void CEvent::Initialize()
!
Index: Queue.cxx
===================================================================
RCS file: /cvsroot/moss//moss/colpatik/src/modules/input/Queue.cxx,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -r1.5 -r1.6
*** Queue.cxx 30 Oct 2002 01:48:48 -0000 1.5
--- Queue.cxx 30 Oct 2002 23:35:53 -0000 1.6
***************
*** 1,60 ****
! /***************************************************************************
! Queue.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. *
! * *
! ***************************************************************************
! *
! *
! *
! ***************************************************************************/
!
!
! #include "Queue.h"
!
! using namespace std;
! using namespace colpatik;
!
! CQueue::CQueue()
! {
! } // CQueue::CQueue()
!
! CQueue::~CQueue()
! {
! } // CQueue::~CQueue()
!
! CEvent& CQueue::operator << (CEvent& roEvent)
! {
! return roEvent;
! } // CEvent& CQueue::operator << (CEvent& roEvent)
!
! CEvent& CQueue::operator >> (CEvent& roEvent)
! {
! return roEvent;
! } // CEvent& CQueue::operator >> (CEvent& roEvent)
!
! void CQueue::Initialize()
! {
! } // void CQueue::Initialize()
--- 1,60 ----
! /***************************************************************************
! Queue.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. *
! * *
! ***************************************************************************
! *
! *
! *
! ***************************************************************************/
!
!
! #include "Queue.h"
!
! using namespace std;
! using namespace colpatik;
!
! CQueue::CQueue()
! {
! } // CQueue::CQueue()
!
! CQueue::~CQueue()
! {
! } // CQueue::~CQueue()
!
! CEvent& CQueue::operator << (CEvent& roEvent)
! {
! return roEvent;
! } // CEvent& CQueue::operator << (CEvent& roEvent)
!
! CEvent& CQueue::operator >> (CEvent& roEvent)
! {
! return roEvent;
! } // CEvent& CQueue::operator >> (CEvent& roEvent)
!
! void CQueue::Initialize()
! {
! } // void CQueue::Initialize()
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Moss-devel] CVS: moss/colpatik/src/modules/input ColpatikInput.cxx,1.5,1.6 Device.cxx,1.3,1.4 DeviceInterrupt.cxx,1.3,1.4 DevicePoll.cxx,1.2,1.3 DeviceQuery.cxx,1.2,1.3 Event.cxx,1.6,1.7 Queue.cxx,1.5,1.6,
Manfred Morgner <address@hidden> <=
- Prev by Date:
[Moss-devel] CVS: moss/colpatik/include/modules/input ColpatikDevice.h,1.3,1.4 ColpatikInput.h,1.2,1.3 Device.h,1.3,1.4 DeviceInterrupt.h,1.3,1.4 DevicePoll.h,1.2,1.3 DeviceQuery.h,1.2,1.3 Event.h,1.5,1.6 Makefile.am,1.2,1.3 Queue.h,1.3,1.4
- Next by Date:
[Moss-devel] CVS: moss/colpatik configure.ac,1.2,1.3
- Previous by thread:
[Moss-devel] CVS: moss/colpatik/include/modules/input ColpatikDevice.h,1.3,1.4 ColpatikInput.h,1.2,1.3 Device.h,1.3,1.4 DeviceInterrupt.h,1.3,1.4 DevicePoll.h,1.2,1.3 DeviceQuery.h,1.2,1.3 Event.h,1.5,1.6 Makefile.am,1.2,1.3 Queue.h,1.3,1.4
- Next by thread:
[Moss-devel] CVS: moss/colpatik configure.ac,1.2,1.3
- Index(es):