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 ColpatikDevice.cxx,NON


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

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

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


--- NEW FILE ---
/***************************************************************************
                            ColpatikDevice.cpp
                           -------------------
    begin                : Thu June 12 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.                                          *
 *                                                                         *
 ***************************************************************************
 *
 *
 *
 ***************************************************************************/


#include "ColpatikDevice.h"


using namespace colpatik;

//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////

CColpatikDevice::CColpatikDevice()
  {

  } // CColpatikDevice::CColpatikDevice()

CColpatikDevice::~CColpatikDevice()
  {

  } // CColpatikDevice::~CColpatikDevice()


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

  (1) Polling devices
  (2) Interrupting 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.

  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 colpatik;
using namespace std;

//////////////////////////////////////////////////////////////////////
// static members
//////////////////////////////////////////////////////////////////////

void CColpatikInput::Action(void* pData)
  {
  } // static void CColpatikInput::Run(void* pData)


//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////

CColpatikInput::CColpatikInput()
  {
  
  }

CColpatikInput::~CColpatikInput()
  {
  
  }

//////////////////////////////////////////////////////////////////////
// public members
//////////////////////////////////////////////////////////////////////


void CColpatikInput::LoadDevices()
  {
/*
  while (...) 
    {
    m_lpoDevicesPoll.append(..);
    }

*/


/*
  while (...) 
    {
    m_lpoDevicesInterrupt.append(..);
    }

*/
  } // 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()

--- 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::CEvent(CEvent& src)
  {
  Initialze();
  operator = (src);
  } // CEvent::CEvent(CEvent& src)

CEvent::CEvent(const TEvent& src)
  {
  Initialze();
  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)

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

///////////////////////////////////////////////////
// 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()


--- NEW FILE ---
/***************************************************************************
                              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 colpatik;

CQeueu::CQueue()
  {
  } // 

CQeueu::~CQueue()
  {
  } // 

CEvent& CQeueu::operator << (CEvent& roEvent)
  {
  } // 

CEvent& CQeueu::operator >> (CEvent& roEvent)
  {
  } // 

void CQeueu::Initialize()
  {
  } // 




reply via email to

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