libmoldeo (Moldeo 1.0 Core)  1.0
libmoldeo is the group of objects and functions that executes the basic operations of Moldeo 1.0 Platform.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
moIODeviceManager Class Reference

#include <moIODeviceManager.h>

Inheritance diagram for moIODeviceManager:
moAbstract

Public Member Functions

 moIODeviceManager ()
 
virtual ~moIODeviceManager ()
 
moIODeviceNewIODevice (const moText &p_devname, const moText &p_configname, const moText &p_labelname, const moText &p_keyname, moMoldeoObjectType p_type, int paramindex=-1, int valueindex=-1, bool p_activate=true)
 
MOboolean RemoveIODevice (MOint p_ID)
 
moIODevicesArray & IODevices ()
 
void Update ()
 
virtual MOboolean Init ()
 
virtual MOboolean Finish ()
 
MOswitch GetStatus (MOdevcode)
 
MOswitch SetStatus (MOdevcode, MOswitch)
 
MOdevcode GetCode (char *)
 
moEventListGetEvents ()
 
void PurgeEvents ()
 
- Public Member Functions inherited from moAbstract
 moAbstract ()
 
virtual ~moAbstract ()
 
MOboolean Initialized ()
 Pregunta si está inicializado. More...
 

Additional Inherited Members

- Public Attributes inherited from moAbstract
MOboolean m_bInitialized
 Valor de inicialización More...
 
- Static Public Attributes inherited from moAbstract
static moDebugMODebug2 = new moDebug()
 Clase de impresión de errores para depuración More...
 
static moTextHeapMODebug = new moTextHeap()
 Lista de textos. More...
 

Detailed Description

administrador de dispositivos de entrada/salida y de eventos a) crea nuevos dispositivos (moIODevice) b) consulta los dispositivos por valores c) administra la lista de eventos generados por el OS

Definition at line 168 of file moIODeviceManager.h.

Constructor & Destructor Documentation

moIODeviceManager::moIODeviceManager ( )

constructor genérico de la clase.

Definition at line 96 of file moIODeviceManager.cpp.

moIODeviceManager::~moIODeviceManager ( )
virtual

constructor genérico de la clase.

Definition at line 101 of file moIODeviceManager.cpp.

Member Function Documentation

MOboolean moIODeviceManager::Finish ( )
virtual

TODO:

Reimplemented from moAbstract.

Definition at line 288 of file moIODeviceManager.cpp.

MOdevcode moIODeviceManager::GetCode ( char *  n)

TODO:

Definition at line 268 of file moIODeviceManager.cpp.

moEventList * moIODeviceManager::GetEvents ( )

TODO:

Definition at line 263 of file moIODeviceManager.cpp.

MOswitch moIODeviceManager::GetStatus ( MOdevcode  a)

TODO:

Definition at line 274 of file moIODeviceManager.cpp.

MOboolean moIODeviceManager::Init ( )
virtual

TODO:

Reimplemented from moAbstract.

Definition at line 107 of file moIODeviceManager.cpp.

moIODevicesArray & moIODeviceManager::IODevices ( )

TODO:

Definition at line 145 of file moIODeviceManager.cpp.

moIODevice * moIODeviceManager::NewIODevice ( const moText p_devname,
const moText p_configname,
const moText p_labelname,
const moText p_keyname,
moMoldeoObjectType  p_type,
int  paramindex = -1,
int  valueindex = -1,
bool  p_activate = true 
)

constructor genérico de la clase.

Definition at line 115 of file moIODeviceManager.cpp.

void moIODeviceManager::PurgeEvents ( )

Eliminar aquellos eventos que no son de la clase derivada de moEvent: moMessage moEvent es un evento sin destinatario definido. Todos lo leen, moMessage en cambio tiene un emisor y un destinatario

ERASE ANY EVENT THAT IS NOT A MESSAGE

An event has no destination (BROADCAST): IODeviceManager must purge this events so they do not propagate indefinitly A message has a destination (UNICAST / MULTICAST): IODeviceManager doesnt purge them,

moMessage *pmessage;

Procesamos los eventos recibidos de los MoldeoObject Outlets

procesamos aquellos Outlet q estan dirigidos a este objeto

Definition at line 242 of file moIODeviceManager.cpp.

MOboolean moIODeviceManager::RemoveIODevice ( MOint  p_ID)

constructor genérico de la clase.

Definition at line 151 of file moIODeviceManager.cpp.

MOswitch moIODeviceManager::SetStatus ( MOdevcode  a,
MOswitch  b 
)

TODO:

Definition at line 280 of file moIODeviceManager.cpp.

void moIODeviceManager::Update ( )

constructor genérico de la clase.

delete all events before poll new ones... that means Devices dont need to delete their events anymore

Definition at line 168 of file moIODeviceManager.cpp.


The documentation for this class was generated from the following files: