/* * 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: *
*
* Example option:
* bit 0: semantic flag
* bit 1: flush flag
* bit 2: reply flag
* bit 3-7: leer
* results in TEST_OPTIONS 20 //0b00100000
*
* @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 */