31 #ifndef SYSTEMSPHYSICALINTERFACES_H_ 32 #define SYSTEMSPHYSICALINTERFACES_H_ 34 #include "../Variable.h" 51 class IPhysicalInterface;
64 void setup(int32_t userID, int32_t groupID,
bool setPermissions);
75 std::function<void(int32_t familyId, const std::string &interfaceId, const BaseLib::PVariable &packet)>
_rawPacketEvent;
virtual void create()
Definition: PhysicalInterfaces.h:77
virtual ~PhysicalInterfaces()
Definition: PhysicalInterfaces.cpp:51
This is the base library main class.
Definition: BaseLib.h:95
virtual PVariable listInterfaces()
Definition: PhysicalInterfaces.cpp:148
std::map< std::string, std::shared_ptr< IPhysicalInterface > > _physicalInterfaces
Definition: PhysicalInterfaces.h:73
std::map< std::string, PPhysicalInterfaceSettings > _physicalInterfaceSettings
Definition: PhysicalInterfaces.h:71
Definition: BaseLib.cpp:34
bool lifetick()
Definition: PhysicalInterfaces.cpp:64
PVariable value
Definition: UiElements.h:217
std::shared_ptr< Variable > PVariable
Definition: PhysicalInterfaceSettings.h:41
BaseLib::SharedObjects * _bl
Definition: PhysicalInterfaces.h:69
Definition: PhysicalInterfaces.h:53
void setRawPacketEvent(std::function< void(int32_t familyId, const std::string &interfaceId, const BaseLib::PVariable &packet)> value)
Definition: PhysicalInterfaces.h:67
virtual void stopListening()
Definition: PhysicalInterfaces.cpp:119
int32_t familyId
Definition: Licensing.h:380
std::mutex _physicalInterfacesMutex
Definition: PhysicalInterfaces.h:72
int32_t _familyId
Definition: PhysicalInterfaces.h:70
PhysicalInterfaces(BaseLib::SharedObjects *bl, int32_t familyId, std::map< std::string, PPhysicalInterfaceSettings > physicalInterfaceSettings)
Definition: PhysicalInterfaces.cpp:40
void dispose()
Definition: PhysicalInterfaces.cpp:54
void setup(int32_t userID, int32_t groupID, bool setPermissions)
Definition: PhysicalInterfaces.cpp:131
virtual void startListening()
Definition: PhysicalInterfaces.cpp:106
std::function< void(int32_t familyId, const std::string &interfaceId, const BaseLib::PVariable &packet)> _rawPacketEvent
Definition: PhysicalInterfaces.h:75
bool isOpen()
Definition: PhysicalInterfaces.cpp:89
uint32_t count()
Definition: PhysicalInterfaces.cpp:78
void rawPacketEvent(int32_t familyId, const std::string &interfaceId, const BaseLib::PVariable &packet)
Definition: PhysicalInterfaces.cpp:179