PEBL 2.2
Psychology Experiment Building Language - Cross-platform psychological experiment development system
PDevice Class Reference

#include <PDevice.h>

Inheritance diagram for PDevice:
PAudioOut PEventQueue PJoystick PKeyboard PMovie PNetwork PParallelPort PStream PTimer

Public Member Functions

 PDevice ()
 The Standard constructor.
 
virtual ~PDevice ()
 The Standard destructor.
 
virtual PEBL_DEVICE_TYPE GetDeviceType ()
 
virtual int GetState (int iface) const
 

Friends

std::ostream & operator<< (std::ostream &out, const PDevice &device)
 

Detailed Description

This is the basic 'Device' class maybe should be better integrated with the Object system, but we'll see about that later. It is used to manage input devices such as keyboard and mouse events.

Definition at line 70 of file PDevice.h.

Constructor & Destructor Documentation

◆ PDevice()

PDevice::PDevice ( )

The Standard constructor.

This is the standard PDevice constructor.

Definition at line 36 of file PDevice.cpp.

37{
38
39}

◆ ~PDevice()

PDevice::~PDevice ( )
virtual

The Standard destructor.

This is the standard pNode destructor.

Definition at line 42 of file PDevice.cpp.

43{
44 // Standard Destructor
45}

Member Function Documentation

◆ GetDeviceType()

virtual PEBL_DEVICE_TYPE PDevice::GetDeviceType ( )
inlinevirtual

Reimplemented in PAudioOut, PEventQueue, PKeyboard, PStream, and PTimer.

Definition at line 85 of file PDevice.h.

85{return PDT_UNKNOWN;};
@ PDT_UNKNOWN
Definition PDevice.h:41

References PDT_UNKNOWN.

◆ GetState()

int PDevice::GetState ( int  iface) const
virtual

Reimplemented in PKeyboard, PlatformKeyboard, PlatformTimer, PlatformTimer, PTimer, and PEventQueue.

Definition at line 65 of file PDevice.cpp.

66{
67 cerr << "Getting improper state in PDevice::GetState\n";
68 return 0;
69}

Referenced by ValueState::TestDevice(), IntervalState::TestDevice(), and RegionState::TestDevice().

Friends And Related Symbol Documentation

◆ operator<<

std::ostream & operator<< ( std::ostream &  out,
const PDevice device 
)
friend

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