YARP
Yet Another Robot Platform
ShmemOutputStreamImpl Class Reference

#include <shmem_carrier/ShmemOutputStream.h>

Public Member Functions

 ShmemOutputStreamImpl ()
 
 ~ShmemOutputStreamImpl ()
 
bool isOk () const
 
bool open (int port, int size=4096)
 
bool write (const yarp::os::Bytes &b)
 
void close ()
 

Protected Member Functions

bool Resize (int newsize)
 

Protected Attributes

bool m_bOpen
 
int m_ResizeNum
 
int m_Port
 
ACE_Process_Mutex * m_pAccessMutex
 
ACE_Process_Mutex * m_pWaitDataMutex
 
ACE_Shared_Memory * m_pMap
 
char * m_pData
 
ShmemHeader_tm_pHeader
 

Detailed Description

Definition at line 39 of file ShmemOutputStream.h.

Constructor & Destructor Documentation

◆ ShmemOutputStreamImpl()

ShmemOutputStreamImpl::ShmemOutputStreamImpl ( )

Definition at line 23 of file ShmemOutputStream.cpp.

◆ ~ShmemOutputStreamImpl()

ShmemOutputStreamImpl::~ShmemOutputStreamImpl ( )

Definition at line 35 of file ShmemOutputStream.cpp.

Member Function Documentation

◆ close()

void ShmemOutputStreamImpl::close ( )

Definition at line 232 of file ShmemOutputStream.cpp.

◆ isOk()

bool ShmemOutputStreamImpl::isOk ( ) const

Definition at line 40 of file ShmemOutputStream.cpp.

◆ open()

bool ShmemOutputStreamImpl::open ( int  port,
int  size = 4096 
)

Definition at line 45 of file ShmemOutputStream.cpp.

◆ Resize()

bool ShmemOutputStreamImpl::Resize ( int  newsize)
protected

Definition at line 112 of file ShmemOutputStream.cpp.

◆ write()

bool ShmemOutputStreamImpl::write ( const yarp::os::Bytes b)

Definition at line 187 of file ShmemOutputStream.cpp.

Member Data Documentation

◆ m_bOpen

bool ShmemOutputStreamImpl::m_bOpen
protected

Definition at line 53 of file ShmemOutputStream.h.

◆ m_pAccessMutex

ACE_Process_Mutex* ShmemOutputStreamImpl::m_pAccessMutex
protected

Definition at line 62 of file ShmemOutputStream.h.

◆ m_pData

char* ShmemOutputStreamImpl::m_pData
protected

Definition at line 67 of file ShmemOutputStream.h.

◆ m_pHeader

ShmemHeader_t* ShmemOutputStreamImpl::m_pHeader
protected

Definition at line 68 of file ShmemOutputStream.h.

◆ m_pMap

ACE_Shared_Memory* ShmemOutputStreamImpl::m_pMap
protected

Definition at line 66 of file ShmemOutputStream.h.

◆ m_Port

int ShmemOutputStreamImpl::m_Port
protected

Definition at line 56 of file ShmemOutputStream.h.

◆ m_pWaitDataMutex

ACE_Process_Mutex* ShmemOutputStreamImpl::m_pWaitDataMutex
protected

Definition at line 63 of file ShmemOutputStream.h.

◆ m_ResizeNum

int ShmemOutputStreamImpl::m_ResizeNum
protected

Definition at line 55 of file ShmemOutputStream.h.


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