Added status resetting for REST

This commit is contained in:
2014-09-22 11:45:01 +02:00
parent b427452f39
commit e5864d4343
6 changed files with 157 additions and 86 deletions

View File

@ -21,19 +21,15 @@
#include "utilities.h"
#include "logger.h"
/*
void print_not_implemented(string method_name){
std::cout << "[WARNING] Method " << method_name << " not implemented!" << std::endl;
}
*/
class UDPInterface {
/* abstract class that defines the public interface of an sls detector data receiver.
/* abstract class that defines the public interface of an sls detector data receiver UDP part.
*
* Use the factory method slsReceiverBase::create() to get an instance:
*
* slsReceiverBase *receiver = slsReceiverBase::create()
* UDPInterface *receiver = UDPInterface::create()
*
* supported sequence of method-calls:
*
@ -64,11 +60,6 @@ class UDPInterface {
public:
/**
* constructor
*/
//UDPInterface(){};
/**
* Destructor
*/
@ -80,11 +71,10 @@ class UDPInterface {
static UDPInterface *create(string receiver_type = "standard");
virtual void configure(map<string, string> config_map) = 0;
public:
/**
* Initialize the Receiver
@param detectorHostName detector hostname
@ -94,10 +84,10 @@ class UDPInterface {
/* Returns detector hostname
/returns hostname
* caller needs to deallocate the returned char array.
* if uninitialized, it must return NULL
*/
/returns hostname
* caller needs to deallocate the returned char array.
* if uninitialized, it must return NULL
*/
virtual char *getDetectorHostname() const = 0;
/**