Toggle navigation
ivorium
iv_components
Example project
GitHub
Main Page
Modules
Classes
Files
File List
File Members
ivorium_core
Attribute
Attributes
PrivAttr.inl
Go to the documentation of this file.
1
namespace
iv
2
{
3
4
//--------------------- PrivAttr_Owner -----------------------------------------
5
template
<
class
T >
6
void
PrivAttr_Owner< T >::SourceValueChanged
(
PrivAttr_I< T >
* attr )
7
{
8
attr->SourceValueChanged();
9
}
10
11
template
<
class
T >
12
void
PrivAttr_Owner< T >::Attribute_SetMode
(
PrivAttr_I< T >
* attr,
Attribute::ValueMode
mode )
13
{
14
attr->SetAttributeMode( mode );
15
}
16
17
//--------------------- PrivAttr_I -------------------------------------
18
template
<
class
T >
19
PrivAttr_I< T >::PrivAttr_I
(
ClientMarker
* cm,
AttributeEventProcessor
* processor,
PrivAttr_Owner< T >
* owner ) :
20
Attr
< T >( cm, processor, false ),
21
owner( owner )
22
{
23
}
24
25
template
<
class
T >
26
void
PrivAttr_I< T >::GetSourceValue
( T & out )
const
27
{
28
return
this->owner->PrivAttr_Get( out );
29
}
30
31
template
<
class
T >
32
void
PrivAttr_I< T >::ModifySource
( T
const
& value )
const
33
{
34
this->owner->PrivAttr_Modify( value );
35
}
36
37
//--------------------- PrivAttr -------------------------------------
38
template
<
class
T >
39
PrivAttr< T >::PrivAttr
(
ClientMarker
* cm,
PrivAttr_Owner< T >
* owner ) :
40
Local_AEP
(),
41
PrivAttr_I
< T >( cm, this, owner )
42
{
43
this->Notify_Activated();
44
}
45
46
template
<
class
T >
47
PrivAttr< T >::~PrivAttr
()
48
{
49
this->Notify_Deactivated();
50
}
51
52
}