| 46 | } |
| 47 | |
| 48 | void Property::initialise() |
| 49 | { |
| 50 | if (!mType->getInitialisator().empty()) |
| 51 | { |
| 52 | IPropertyInitialisator* initialisator = |
| 53 | components::FactoryManager::GetInstance().CreateItem<IPropertyInitialisator>(mType->getInitialisator()); |
| 54 | if (initialisator != nullptr) |
| 55 | initialisator->initialise(mWeakThis.lock()); |
| 56 | } |
| 57 | else |
| 58 | { |
| 59 | mValue = mType->getDefaultValue(); |
| 60 | } |
| 61 | } |
| 62 | |
| 63 | PropertyPtr Property::CreateInstance(DataTypePropertyPtr _type, DataPtr _owner) |
| 64 | { |