OLD | NEW |
| (Empty) |
1 // Copyright 2010 The Ginsu Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can | |
3 // be found in the LICENSE file. | |
4 | |
5 #include "c_salt/property.h" | |
6 | |
7 namespace c_salt { | |
8 Property::Property(const PropertyAttributes& attributes) | |
9 : name_(attributes.name_), | |
10 is_static_(attributes.is_static_), | |
11 is_mutable_(attributes.is_mutable_), | |
12 value_(attributes.value_) { | |
13 } | |
14 | |
15 SharedVariant Property::GetValue() const { | |
16 // TODO(dspringer,dmichael): Add the observer calls here. boost::signals2? | |
17 // observers.WillGetProperty(this, value_); | |
18 return value_; | |
19 } | |
20 | |
21 void Property::SetValue(const SharedVariant& new_value) { | |
22 // TODO(dspringer,dmichael): Add the observer calls here. boost::signals2? | |
23 // observers.WillSetProperty(this, value_, new_value); | |
24 value_ = new_value; | |
25 // observers.DidSetProperty(this, new_value); | |
26 } | |
27 } // namespace c_salt | |
OLD | NEW |