Files
scandocs/uni/masterarbeit/source/moversight/split/SplitOptions.h
2014-06-30 13:58:10 +02:00

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&auml;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 */