MythTV  master
Public Types | Public Member Functions | Protected Member Functions | Private Types | Private Attributes | List of all members
Buffer Class Reference

#include <MythExternControl.h>

Inheritance diagram for Buffer:
Inheritance graph
[legend]
Collaboration diagram for Buffer:
Collaboration graph
[legend]

Public Types

enum  constants { MAX_QUEUE = 500 }
 

Public Member Functions

 Buffer (MythExternControl *parent)
 
 ~Buffer (void)=default
 
void Start (void)
 
void Join (void)
 
bool Fill (const QByteArray &buffer)
 
std::chrono::time_point< std::chrono::system_clock > HeartBeat (void) const
 

Protected Member Functions

void Run (void)
 

Private Types

using block_t = std::vector< uint8_t >
 
using stack_t = std::queue< block_t >
 

Private Attributes

MythExternControlm_parent
 
std::thread m_thread
 
stack_t m_data
 
std::chrono::time_point< std::chrono::system_clock > m_heartbeat
 

Detailed Description

Definition at line 36 of file MythExternControl.h.

Member Typedef Documentation

◆ block_t

using Buffer::block_t = std::vector<uint8_t>
private

Definition at line 61 of file MythExternControl.h.

◆ stack_t

using Buffer::stack_t = std::queue<block_t>
private

Definition at line 62 of file MythExternControl.h.

Member Enumeration Documentation

◆ constants

Enumerator
MAX_QUEUE 

Definition at line 41 of file MythExternControl.h.

Constructor & Destructor Documentation

◆ Buffer()

Buffer::Buffer ( MythExternControl parent)

Definition at line 493 of file MythExternControl.cpp.

◆ ~Buffer()

Buffer::~Buffer ( void  )
default

Member Function Documentation

◆ Start()

void Buffer::Start ( void  )
inline

Definition at line 45 of file MythExternControl.h.

Referenced by MythExternControl::MythExternControl().

◆ Join()

void Buffer::Join ( void  )
inline

Definition at line 48 of file MythExternControl.h.

Referenced by MythExternControl::~MythExternControl().

◆ Fill()

bool Buffer::Fill ( const QByteArray &  buffer)

Definition at line 499 of file MythExternControl.cpp.

Referenced by MythExternControl::Fill().

◆ HeartBeat()

std::chrono::time_point<std::chrono::system_clock> Buffer::HeartBeat ( void  ) const
inline

Definition at line 54 of file MythExternControl.h.

◆ Run()

void Buffer::Run ( void  )
protected

Definition at line 538 of file MythExternControl.cpp.

Referenced by Start().

Member Data Documentation

◆ m_parent

MythExternControl* Buffer::m_parent
private

Definition at line 64 of file MythExternControl.h.

Referenced by Fill(), and Run().

◆ m_thread

std::thread Buffer::m_thread
private

Definition at line 66 of file MythExternControl.h.

Referenced by Join(), and Start().

◆ m_data

stack_t Buffer::m_data
private

Definition at line 68 of file MythExternControl.h.

Referenced by Fill(), and Run().

◆ m_heartbeat

std::chrono::time_point<std::chrono::system_clock> Buffer::m_heartbeat
private

Definition at line 70 of file MythExternControl.h.

Referenced by Buffer(), Fill(), and HeartBeat().


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