59 lines
1.3 KiB
C++
59 lines
1.3 KiB
C++
/*
|
|
* File: SplitOptions.h
|
|
* Author: jgaebler
|
|
*
|
|
* Created on November 14, 2011, 6:37 PM
|
|
*/
|
|
#pragma once
|
|
|
|
#ifndef SPLITOPTIONS_H
|
|
#define SPLITOPTIONS_H
|
|
|
|
namespace ubeeme {
|
|
namespace moversight {
|
|
|
|
/**
|
|
* @brief Provides access to the service options of a split operation.
|
|
* The options describing the selected synchronisation mode and which
|
|
* peers have to reply to the split request. The options will stored
|
|
* as bit string. The following example describes its composition:
|
|
* <br>
|
|
* <br>
|
|
* Example option:<br>
|
|
* bit 0: semantic flag<br>
|
|
* bit 1: flush flag<br>
|
|
* bit 2: reply flag<br>
|
|
* bit 3-7: leer<br>
|
|
* results in TEST_OPTIONS 20 //0b00100000<br>
|
|
* <br>
|
|
* @class SplitOptions
|
|
* @author Jan Gäbler
|
|
* @ingroup Moversight
|
|
*/
|
|
class SplitOptions {
|
|
public:
|
|
|
|
SplitOptions();
|
|
|
|
SplitOptions(unsigned char o);
|
|
|
|
virtual ~SplitOptions();
|
|
|
|
bool isFlushSynchronisation() const;
|
|
|
|
bool isSemanticValidation() const;
|
|
|
|
bool isReplyAll() const;
|
|
|
|
unsigned char getRaw() const;
|
|
|
|
private:
|
|
|
|
unsigned char options;
|
|
};
|
|
}
|
|
}
|
|
|
|
#endif /* SPLITOPTIONS_H */
|
|
|