The Pedigree Project 0.1
Classes | Public Types | Public Member Functions | Public Attributes | List of all members
HidReport::Collection Struct Reference

Structure representing a Collection whitin a report. More...

+ Collaboration diagram for HidReport::Collection:

Classes

struct  Child
 

Public Types

enum  ChildType { CollectionChild , InputBlockChild }
 

Public Member Functions

void feedInput (uint8_t *pBuffer, uint8_t *pOldBuffer, size_t nBufferSize, size_t &nBitOffset, uint8_t reportId, HidUtils::InputState &inputState)
 
HidDeviceType guessInputDevice ()
 

Public Attributes

Vector< Child * > childs
 All the childs in this collection.
 
Collection * pParent
 Our parent.
 
LocalState state
 The local state of the collection.
 

Detailed Description

Structure representing a Collection whitin a report.

Definition at line 126 of file HidReport.h.

Member Enumeration Documentation

◆ ChildType

enum HidReport::Collection::ChildType

Definition at line 129 of file HidReport.h.

Constructor & Destructor Documentation

◆ ~Collection()

HidReport::Collection::~Collection ( )

Definition at line 59 of file HidReport.cc.

Member Function Documentation

◆ feedInput()

void HidReport::Collection::feedInput ( uint8_t *  pBuffer,
uint8_t *  pOldBuffer,
size_t  nBufferSize,
size_t &  nBitOffset,
uint8_t  reportId,
HidUtils::InputState &  inputState 
)

Feeds input to this collection (will get forwarded to the lowest collection)

Definition at line 324 of file HidReport.cc.

References HidReport::InputBlock::feedInput(), and feedInput().

Referenced by HidReport::feedInput(), and feedInput().

+ Here is the caller graph for this function:

◆ guessInputDevice()

HidDeviceType HidReport::Collection::guessInputDevice ( )

Guesses from which type of device the input associated with this collection comes from

Definition at line 345 of file HidReport.cc.

References HidReport::LocalState::getUsageByIndex(), pParent, and state.

Member Data Documentation

◆ childs

Vector<Child*> HidReport::Collection::childs

All the childs in this collection.

Definition at line 151 of file HidReport.h.

Referenced by HidReport::parseDescriptor().

◆ pParent

Collection* HidReport::Collection::pParent

Our parent.

Definition at line 154 of file HidReport.h.

Referenced by guessInputDevice(), and HidReport::parseDescriptor().

◆ state

LocalState HidReport::Collection::state

The local state of the collection.

Definition at line 157 of file HidReport.h.

Referenced by guessInputDevice(), and HidReport::parseDescriptor().


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