39 lines
979 B
C++
39 lines
979 B
C++
/*
|
|
* File: NVBValidator.h
|
|
* Author: stubbfel
|
|
*
|
|
* Created on 14. August 2013, 20:30
|
|
*/
|
|
|
|
#ifndef NVBVALIDATOR_H
|
|
#define NVBVALIDATOR_H
|
|
|
|
#include "common/validator/MessageValidator.h"
|
|
|
|
namespace ubeeme {
|
|
namespace moversight {
|
|
|
|
/**
|
|
* @class NVBValidator
|
|
* @ingroup Moversight
|
|
* @author stubbfel
|
|
* @brief Determines, if a received message valid within the current membership setting, or not.
|
|
* The class is an implementation of the message validator interface and its store msg from future view in the nextviewbuffer
|
|
*/
|
|
class NVBValidator : public MessageValidator {
|
|
public:
|
|
|
|
NVBValidator(Dispatcher & dis);
|
|
virtual ~NVBValidator();
|
|
|
|
bool isValid(const MoversightMessage & msg) const;
|
|
bool isValid(const ExteriorMessage & msg) const;
|
|
bool isValid(const MulticastMessage & msg) const;
|
|
|
|
};
|
|
}
|
|
}
|
|
|
|
#endif /* NVBVALIDATOR_H */
|
|
|