DevSlashLirc
Public Types | Public Member Functions | Static Public Member Functions | List of all members
LircT Class Reference

This is the class version of lirc_t, defined in lirc.h. More...

#include <LircT.h>

Public Types

enum  LircTType { SPACE = LIRC_MODE2_SPACE, PULSE = LIRC_MODE2_PULSE, FREQUENCY = LIRC_MODE2_FREQUENCY, TIMEOUT = LIRC_MODE2_TIMEOUT }
 

Public Member Functions

 LircT (lirc_t data)
 
 LircT (microseconds_t data, LircTType type)
 
 LircT (const LircT &orig)
 
virtual ~LircT ()
 
microseconds_t getDuration () const
 
bool isSpace () const
 
bool isPulse () const
 
bool isFrequency () const
 
bool isTimeout () const
 
bool isTerminal () const
 
void dump (std::ostream &stream=std::cout) const
 

Static Public Member Functions

static microseconds_t getDuration (lirc_t t)
 
static bool isSpace (lirc_t t)
 
static bool isPulse (lirc_t t)
 
static bool isFrequency (lirc_t t)
 
static bool isTimeout (lirc_t t)
 
static bool isTerminal (lirc_t t)
 
static void dump (lirc_t t, std::ostream &stream=std::cout)
 

Detailed Description

This is the class version of lirc_t, defined in lirc.h.

Definition at line 9 of file LircT.h.

Member Enumeration Documentation

◆ LircTType

Enumerator
SPACE 
PULSE 
FREQUENCY 
TIMEOUT 

Definition at line 17 of file LircT.h.

Constructor & Destructor Documentation

◆ LircT() [1/3]

LircT::LircT ( lirc_t  data)

Definition at line 3 of file LircT.cpp.

◆ LircT() [2/3]

LircT::LircT ( microseconds_t  data,
LircTType  type 
)

Definition at line 7 of file LircT.cpp.

◆ LircT() [3/3]

LircT::LircT ( const LircT orig)

Definition at line 12 of file LircT.cpp.

◆ ~LircT()

LircT::~LircT ( )
virtual

Definition at line 16 of file LircT.cpp.

Member Function Documentation

◆ dump() [1/2]

void LircT::dump ( std::ostream &  stream = std::cout) const

Definition at line 19 of file LircT.cpp.

◆ dump() [2/2]

static void LircT::dump ( lirc_t  t,
std::ostream &  stream = std::cout 
)
inlinestatic

Definition at line 80 of file LircT.h.

◆ getDuration() [1/2]

microseconds_t LircT::getDuration ( ) const
inline

Definition at line 29 of file LircT.h.

◆ getDuration() [2/2]

static microseconds_t LircT::getDuration ( lirc_t  t)
inlinestatic

Definition at line 56 of file LircT.h.

◆ isFrequency() [1/2]

bool LircT::isFrequency ( ) const
inline

Definition at line 41 of file LircT.h.

◆ isFrequency() [2/2]

static bool LircT::isFrequency ( lirc_t  t)
inlinestatic

Definition at line 68 of file LircT.h.

◆ isPulse() [1/2]

bool LircT::isPulse ( ) const
inline

Definition at line 37 of file LircT.h.

◆ isPulse() [2/2]

static bool LircT::isPulse ( lirc_t  t)
inlinestatic

Definition at line 64 of file LircT.h.

◆ isSpace() [1/2]

bool LircT::isSpace ( ) const
inline

Definition at line 33 of file LircT.h.

◆ isSpace() [2/2]

static bool LircT::isSpace ( lirc_t  t)
inlinestatic

Definition at line 60 of file LircT.h.

◆ isTerminal() [1/2]

bool LircT::isTerminal ( ) const
inline

Definition at line 49 of file LircT.h.

◆ isTerminal() [2/2]

static bool LircT::isTerminal ( lirc_t  t)
inlinestatic

Definition at line 76 of file LircT.h.

◆ isTimeout() [1/2]

bool LircT::isTimeout ( ) const
inline

Definition at line 45 of file LircT.h.

◆ isTimeout() [2/2]

static bool LircT::isTimeout ( lirc_t  t)
inlinestatic

Definition at line 72 of file LircT.h.


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