25 #ifndef WFLAGFORWARDER_TEST_H
26 #define WFLAGFORWARDER_TEST_H
28 #include <cxxtest/TestSuite.h>
30 #include "../WFlagForwarder.h"
32 #include "../WConditionOneShot.h"
56 TS_ASSERT( flagSource->get() == 5 );
57 TS_ASSERT( flagTarget1->get() == 5 );
58 TS_ASSERT( flagTarget2->get() == 5 );
61 flagSource->set( 50 );
64 TS_ASSERT( flagSource->get() == 50 );
65 TS_ASSERT( flagTarget1->get() == 50 );
66 TS_ASSERT( flagTarget2->get() == 50 );
69 flagTarget2->set( 100 );
70 TS_ASSERT( flagSource->get() == 50 );
71 TS_ASSERT( flagTarget1->get() == 50 );
72 TS_ASSERT( flagTarget2->get() == 100 );
76 #endif // WFLAGFORWARDER_TEST_H
Class to have a simple notification/condition system for simple flags.
void forward(boost::shared_ptr< WFlag< T > > to)
Forward the source property to the specified one.
Implements a WCondition, but can be fired only ONCE.
This class helps especially container module programmers to easily synchronize the value of one flag ...
void testPropagation(void)
Add some flags and test whether the value gets propagated properly.