DevSlashLirc
src
main
c++
LircT.cpp
Go to the documentation of this file.
1
#include "
LircT.h
"
2
3
LircT::LircT
(lirc_t data) {
4
this->data = data;
5
}
6
7
LircT::LircT
(
microseconds_t
data,
LircTType
type) {
8
// TODO: test input validity
9
this->data = data | type;
10
}
11
12
LircT::LircT
(
const
LircT
& orig) {
13
data = orig.data;
14
}
15
16
LircT::~LircT
() {
17
}
18
19
void
LircT::dump
(std::ostream& stream)
const
{
20
stream << (
isSpace
() ?
"space"
21
:
isPulse
() ?
"pulse"
22
:
isFrequency
() ?
"frequency"
23
:
isTimeout
() ?
"timeout"
24
:
"unknown"
);
25
stream <<
" "
<<
getDuration
();
26
}
LircT.h
LircT::dump
void dump(std::ostream &stream=std::cout) const
Definition:
LircT.cpp:19
LircT::isPulse
bool isPulse() const
Definition:
LircT.h:37
LircT
This is the class version of lirc_t, defined in lirc.h.
Definition:
LircT.h:9
LircT::getDuration
microseconds_t getDuration() const
Definition:
LircT.h:29
LircT::~LircT
virtual ~LircT()
Definition:
LircT.cpp:16
LircT::isTimeout
bool isTimeout() const
Definition:
LircT.h:45
microseconds_t
uint32_t microseconds_t
Type for durations in micro seconds.
Definition:
InfraredTypes.h:20
LircT::LircT
LircT(lirc_t data)
Definition:
LircT.cpp:3
LircT::isSpace
bool isSpace() const
Definition:
LircT.h:33
LircT::isFrequency
bool isFrequency() const
Definition:
LircT.h:41
LircT::LircTType
LircTType
Definition:
LircT.h:17
Generated on Fri Jul 19 2019 15:15:14 for DevSlashLirc by
1.8.15