libhomegear-base  0.7
Base library for Homegear and Homegear family modules.
BaseLib::Systems::PhysicalInterfaces Class Reference

#include <PhysicalInterfaces.h>

Public Member Functions

 PhysicalInterfaces (BaseLib::SharedObjects *bl, int32_t familyId, std::map< std::string, PPhysicalInterfaceSettings > physicalInterfaceSettings)
 
virtual ~PhysicalInterfaces ()
 
void dispose ()
 
uint32_t count ()
 
virtual void stopListening ()
 
virtual void startListening ()
 
bool lifetick ()
 
bool isOpen ()
 
void setup (int32_t userID, int32_t groupID, bool setPermissions)
 
virtual PVariable listInterfaces ()
 
void setRawPacketEvent (std::function< void(int32_t familyId, const std::string &interfaceId, const BaseLib::PVariable &packet)> value)
 

Protected Member Functions

virtual void create ()
 
void rawPacketEvent (int32_t familyId, const std::string &interfaceId, const BaseLib::PVariable &packet)
 

Protected Attributes

BaseLib::SharedObjects_bl = nullptr
 
int32_t _familyId = -1
 
std::map< std::string, PPhysicalInterfaceSettings_physicalInterfaceSettings
 
std::mutex _physicalInterfacesMutex
 
std::map< std::string, std::shared_ptr< IPhysicalInterface > > _physicalInterfaces
 
std::function< void(int32_t familyId, const std::string &interfaceId, const BaseLib::PVariable &packet)> _rawPacketEvent
 

Constructor & Destructor Documentation

§ PhysicalInterfaces()

BaseLib::Systems::PhysicalInterfaces::PhysicalInterfaces ( BaseLib::SharedObjects bl,
int32_t  familyId,
std::map< std::string, PPhysicalInterfaceSettings physicalInterfaceSettings 
)

§ ~PhysicalInterfaces()

BaseLib::Systems::PhysicalInterfaces::~PhysicalInterfaces ( )
virtual

Member Function Documentation

§ count()

uint32_t BaseLib::Systems::PhysicalInterfaces::count ( )

§ create()

virtual void BaseLib::Systems::PhysicalInterfaces::create ( )
inlineprotectedvirtual

§ dispose()

void BaseLib::Systems::PhysicalInterfaces::dispose ( )

§ isOpen()

bool BaseLib::Systems::PhysicalInterfaces::isOpen ( )

§ lifetick()

bool BaseLib::Systems::PhysicalInterfaces::lifetick ( )

§ listInterfaces()

BaseLib::PVariable BaseLib::Systems::PhysicalInterfaces::listInterfaces ( )
virtual

§ rawPacketEvent()

void BaseLib::Systems::PhysicalInterfaces::rawPacketEvent ( int32_t  familyId,
const std::string &  interfaceId,
const BaseLib::PVariable packet 
)
protected

§ setRawPacketEvent()

void BaseLib::Systems::PhysicalInterfaces::setRawPacketEvent ( std::function< void(int32_t familyId, const std::string &interfaceId, const BaseLib::PVariable &packet)>  value)
inline

§ setup()

void BaseLib::Systems::PhysicalInterfaces::setup ( int32_t  userID,
int32_t  groupID,
bool  setPermissions 
)

§ startListening()

void BaseLib::Systems::PhysicalInterfaces::startListening ( )
virtual

§ stopListening()

void BaseLib::Systems::PhysicalInterfaces::stopListening ( )
virtual

Member Data Documentation

§ _bl

BaseLib::SharedObjects* BaseLib::Systems::PhysicalInterfaces::_bl = nullptr
protected

§ _familyId

int32_t BaseLib::Systems::PhysicalInterfaces::_familyId = -1
protected

§ _physicalInterfaces

std::map<std::string, std::shared_ptr<IPhysicalInterface> > BaseLib::Systems::PhysicalInterfaces::_physicalInterfaces
protected

§ _physicalInterfaceSettings

std::map<std::string, PPhysicalInterfaceSettings> BaseLib::Systems::PhysicalInterfaces::_physicalInterfaceSettings
protected

§ _physicalInterfacesMutex

std::mutex BaseLib::Systems::PhysicalInterfaces::_physicalInterfacesMutex
protected

§ _rawPacketEvent

std::function<void(int32_t familyId, const std::string &interfaceId, const BaseLib::PVariable &packet)> BaseLib::Systems::PhysicalInterfaces::_rawPacketEvent
protected

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