From 7d7493db3a7c5ff257d6f835cc5889d6859f187d Mon Sep 17 00:00:00 2001 From: randomdan Date: Mon, 2 Jun 2014 09:06:59 +0000 Subject: Adds missing constructors to support all things being part of a dictionary --- slicer/slicer/modelParts.h | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/slicer/slicer/modelParts.h b/slicer/slicer/modelParts.h index 6dc450e..bdbe40f 100644 --- a/slicer/slicer/modelParts.h +++ b/slicer/slicer/modelParts.h @@ -132,6 +132,11 @@ namespace Slicer { { } + ModelPartForClass(IceInternal::Handle * h) : + ModelObject(*h) + { + } + virtual void Create() override { ModelObject = new T(); @@ -154,6 +159,11 @@ namespace Slicer { { } + ModelPartForStruct(T * o) : + ModelObject(*o) + { + } + T & GetModel() override { return ModelObject; @@ -208,6 +218,12 @@ namespace Slicer { sequence(s) { } + + ModelPartForSequence(T * s) : + sequence(*s) + { + } + virtual void OnEachChild(const ChildHandler & ch) override { BOOST_FOREACH(auto & element, sequence) { @@ -267,6 +283,12 @@ namespace Slicer { dictionary(d) { } + + ModelPartForDictionary(T * d) : + dictionary(*d) + { + } + virtual void OnEachChild(const ChildHandler & ch) override { BOOST_FOREACH(auto & pair, dictionary) { -- cgit v1.2.3