5 static const int IOCTL_OK = 0;
15 std::cerr <<
"This is not a lirccode device!" << std::endl;
21 if (status != IOCTL_OK) {
22 std::cerr <<
"Error: " << status << std::endl;
32 stream <<
"recording mode: lirccode" << std::endl;
35 stream <<
"codeLength = " << codeLength << std::endl;
37 stream <<
"codeLength: not available" << std::endl;
44 std::cerr <<
"Not implemented yet" << std::endl;
51 std::cerr <<
"Not implemented yet" << std::endl;
LircCodeLircDevice(const char *path=defaultFilename)
int ioctl(uint32_t cmd, uint32_t arg)
bool reportValidity(std::ostream &stream=std::cout) const
static const uint32_t INVALID
void report(const char *name, bool value, std::ostream &stream) const
static const bool longReport
Flag indicating how to format reports.
bool writeCode(uint32_t code)
This abstract class contains the common functionality of the derived classes.
void report(std::ostream &stream=std::cout) const
Prints a listing of the properties implemented on the stream supplied.