TwiceAsNice  2019-02-18
Public Member Functions | Private Member Functions | Private Attributes | List of all members
FindDeviceEthernet Class Reference

class that tries to find apogee devices on the ethernet More...

#include <FindDeviceEthernet.h>

Collaboration diagram for FindDeviceEthernet:
Collaboration graph

Public Member Functions

 FindDeviceEthernet ()
 
virtual ~FindDeviceEthernet ()
 
std::string Find (const std::string &subnet)
 
int32_t GetElapsedSecs ()
 
int32_t GetTimeout ()
 

Private Member Functions

std::string MakeDeviceStr (const std::string &input)
 
void GetId (const std::string &input, std::string &id)
 
void GetFirmwareRev (const std::string &input, std::string &firmwareRev)
 
void GetIpAddr (const std::string &input, std::string &ipAddr)
 
void GetPort (const std::string &input, std::string &port)
 
void GetMacAddr (const std::string &input, std::string &mac)
 
void GetInterfaceStatus (const std::string &input, std::string &interfaceStatus)
 
std::string CameraInfo (const std::string &rawIdStr, const std::string &frmwRevStr)
 
 FindDeviceEthernet (const FindDeviceEthernet &)
 
FindDeviceEthernetoperator= (FindDeviceEthernet &)
 

Private Attributes

const std::string m_fileName
 
const std::string m_CamResponse
 
UdpSocketBasem_socketPtr
 

Detailed Description

class that tries to find apogee devices on the ethernet

Class that tries to find apogee devices on the ethernet.

This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.

Copyright(c) 2009 Apogee Instruments, Inc.

Constructor & Destructor Documentation

◆ FindDeviceEthernet() [1/2]

FindDeviceEthernet::FindDeviceEthernet ( )

◆ ~FindDeviceEthernet()

FindDeviceEthernet::~FindDeviceEthernet ( )
virtual

◆ FindDeviceEthernet() [2/2]

FindDeviceEthernet::FindDeviceEthernet ( const FindDeviceEthernet )
private

Member Function Documentation

◆ CameraInfo()

std::string FindDeviceEthernet::CameraInfo ( const std::string &  rawIdStr,
const std::string &  frmwRevStr 
)
private

◆ Find()

std::string FindDeviceEthernet::Find ( const std::string &  subnet)

Start search for Apogee ethernet device on a particular subnet

Parameters
[in]subnetSubnet address to search, 192.168.0.255 for example.
Returns
Returns a <d></d> demlited string with the ethernet devices found . A null string of <d></d> is returned if no device is found. Example of one camera string
<d>address=192.168.0.20,interface=ethernet,port=80,mac=0009510000FF,deviceType=camera,id=0xfeff,firmwareRev=0x0</d> 

◆ GetElapsedSecs()

int32_t FindDeviceEthernet::GetElapsedSecs ( )

Returns The number of seconds the search has taken

◆ GetFirmwareRev()

void FindDeviceEthernet::GetFirmwareRev ( const std::string &  input,
std::string &  firmwareRev 
)
private

◆ GetId()

void FindDeviceEthernet::GetId ( const std::string &  input,
std::string &  id 
)
private

◆ GetInterfaceStatus()

void FindDeviceEthernet::GetInterfaceStatus ( const std::string &  input,
std::string &  interfaceStatus 
)
private

◆ GetIpAddr()

void FindDeviceEthernet::GetIpAddr ( const std::string &  input,
std::string &  ipAddr 
)
private

◆ GetMacAddr()

void FindDeviceEthernet::GetMacAddr ( const std::string &  input,
std::string &  mac 
)
private

◆ GetPort()

void FindDeviceEthernet::GetPort ( const std::string &  input,
std::string &  port 
)
private

◆ GetTimeout()

int32_t FindDeviceEthernet::GetTimeout ( )

Returns Socket time out value

◆ MakeDeviceStr()

std::string FindDeviceEthernet::MakeDeviceStr ( const std::string &  input)
private

◆ operator=()

FindDeviceEthernet& FindDeviceEthernet::operator= ( FindDeviceEthernet )
private

Member Data Documentation

◆ m_CamResponse

const std::string FindDeviceEthernet::m_CamResponse
private

◆ m_fileName

const std::string FindDeviceEthernet::m_fileName
private

◆ m_socketPtr

UdpSocketBase* FindDeviceEthernet::m_socketPtr
private

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