PrivValAttr.inl
Go to the documentation of this file.
1 namespace iv
2 {
3 
4 //----------------- PrivValAttr_Owner -----------------------
5 
6 template< class T >
8 {
9  attr->Set( val );
10 }
11 
12 template< class T >
14 {
15  attr->SetAttributeMode( mode );
16 }
17 
18 //---------------- PrivValAttr_I -----------------------------
19 template< class T >
20 PrivValAttr_I< T >::PrivValAttr_I( ClientMarker * cm, AttributeEventProcessor * processor, PrivValAttr_Owner * owner, T const & initial_value ) :
21  Attr< T >( cm, processor, false ),
22  owner( owner ),
23  value( initial_value )
24 {
25 }
26 
27 template< class T >
29 {
30  out = this->value;
31 }
32 
33 template< class T >
34 void PrivValAttr_I< T >::ModifySource( T const & new_value )
35 {
36  this->value = new_value;
37  this->owner->PrivValAttr_Modified( this );
38  this->SourceValueChanged();
39 }
40 
41 template< class T >
42 void PrivValAttr_I< T >::Set( T const & value )
43 {
44  this->value = value;
45  this->owner->PrivValAttr_Modified( this );
46  this->SourceValueChanged();
47 }
48 
49 //---------------- PrivValAttr -----------------------------
50 template< class T >
51 PrivValAttr< T >::PrivValAttr( ClientMarker * cm, PrivValAttr_Owner * owner, T const & initial_value ) :
52  Local_AEP(),
53  PrivValAttr_I< T >( cm, this, owner, initial_value )
54 {
55  this->Notify_Activated();
56 }
57 
58 template< class T >
60 {
61  this->Notify_Deactivated();
62 }
63 
64 }