You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

84 lines
2.1 KiB

#ifndef __LRF_SENSORS_ENUMIRATOR_H_INCL__
#define __LRF_SENSORS_ENUMIRATOR_H_INCL__
#ifndef __linux__
#include <winsock2.h>
#include <ws2tcpip.h>
#endif
#include "../base/basicLogCollection.h"
#include "../base/basicSettingsProvider.h"
#include "objectLGS.h"
#define BSI_TAG_SENSOR_TYPE "SENSOR_TYPE"
#define BSI_TAG_CONNECTION_TYPE "CONNECTION_TYPE"
/**
* TODO: Add class description
*
* @author Gagua
*/
class objectSensorsEnumirator
{
private:
basicLogCollection * m_pLog;
config_setting_t * m_pSettings;
vectorSensors m_vSensors;
public:
// Method to fetch singleton instance.
static objectSensorsEnumirator * getInstance();
// Destructor
virtual ~objectSensorsEnumirator();
bool isUsed(int id);
objectLGS * addSensor(SENSOR_INFO * SRC);
// bool addSource( basicMediaSource *SRC );
size_t getCount(void);
objectLGS * getSensor(int index);
protected:
// Constructor - protected so users cannot call it.
objectSensorsEnumirator();
private:
bool loadDefinedSensors(void);
// private static member referencing the single instance of the object
// TODO: Replace mediaVideoSourceManager with the type of object you want to
// return the single instance of
static objectSensorsEnumirator * _instance;
// Copy constructor
// Declared but not defined to prevent auto-generated
// copy constructor. Refer to "Effective C++" by Meyers
// SensorsEnumirator(const mediaVideoSourceManager& src);
// Assignment operator
// Declared but not defined to prevent auto-generated
// assignment operator. Refer to "Effective C++" by Meyers
// SensorsEnumirator& operator=(const mediaVideoSourceManager& src);
};
// TODO: Uncomment the copy constructor when you need it.
// inline mediaVideoSourceManager::mediaVideoSourceManager(const mediaVideoSourceManager& src)
//{
// // TODO: copy
//}
// TODO: Uncomment the assignment operator when you need it.
// inline mediaVideoSourceManager& mediaVideoSourceManager::operator=(const mediaVideoSourceManager& rhs)
//{
// if (this == &rhs) {
// return *this;
// }
//
// // TODO: assignment
//
// return *this;
//}
#endif // __MEDIAVIDEOSOURCEMANAGER_H_INCL__