vrpn  07.33
Virtual Reality Peripheral Network
vrpn_HidNthMatchAcceptor Class Reference

Accepts the Nth device matching a given acceptor. More...

#include <vrpn_HumanInterface.h>

Inheritance diagram for vrpn_HidNthMatchAcceptor:
Collaboration diagram for vrpn_HidNthMatchAcceptor:

Public Member Functions

 vrpn_HidNthMatchAcceptor (size_t index, vrpn_HidAcceptor *acceptor)
 
virtual ~vrpn_HidNthMatchAcceptor ()
 
bool accept (const vrpn_HIDDEVINFO &device)
 
void reset ()
 
- Public Member Functions inherited from vrpn_HidAcceptor
virtual ~vrpn_HidAcceptor ()
 

Detailed Description

Accepts the Nth device matching a given acceptor.

This demonstrates the composition of acceptors, allowing the user/programmer to create a more specific Hid object without needing to duplicate code all over the place.

Definition at line 205 of file vrpn_HumanInterface.h.

Constructor & Destructor Documentation

◆ vrpn_HidNthMatchAcceptor()

vrpn_HidNthMatchAcceptor::vrpn_HidNthMatchAcceptor ( size_t  index,
vrpn_HidAcceptor acceptor 
)
inline

Definition at line 207 of file vrpn_HumanInterface.h.

◆ ~vrpn_HidNthMatchAcceptor()

virtual vrpn_HidNthMatchAcceptor::~vrpn_HidNthMatchAcceptor ( )
inlinevirtual

Definition at line 214 of file vrpn_HumanInterface.h.

Member Function Documentation

◆ accept()

bool vrpn_HidNthMatchAcceptor::accept ( const vrpn_HIDDEVINFO device)
inlinevirtual

Implements vrpn_HidAcceptor.

Definition at line 216 of file vrpn_HumanInterface.h.

◆ reset()

void vrpn_HidNthMatchAcceptor::reset ( )
inlinevirtual

Reimplemented from vrpn_HidAcceptor.

Definition at line 220 of file vrpn_HumanInterface.h.


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