diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2017-07-18 20:45:45 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2017-07-18 20:45:45 +0100 |
commit | 3c354b41eaecc80bca868ba21cf25dec1698c6a6 (patch) | |
tree | 709c6656e5a81a311e892c21ee0f3c24391817f8 | |
parent | Remove the need for quirky 'on first item' initialisation of SQL statements (diff) | |
download | slicer-3c354b41eaecc80bca868ba21cf25dec1698c6a6.tar.bz2 slicer-3c354b41eaecc80bca868ba21cf25dec1698c6a6.tar.xz slicer-3c354b41eaecc80bca868ba21cf25dec1698c6a6.zip |
Over GetContainedModelPart for Root Parts
-rw-r--r-- | slicer/slicer/modelParts.h | 1 | ||||
-rw-r--r-- | slicer/slicer/modelPartsTypes.cpp | 6 |
2 files changed, 7 insertions, 0 deletions
diff --git a/slicer/slicer/modelParts.h b/slicer/slicer/modelParts.h index ce5ab5e..dab66b1 100644 --- a/slicer/slicer/modelParts.h +++ b/slicer/slicer/modelParts.h @@ -199,6 +199,7 @@ namespace Slicer { virtual bool IsOptional() const override; virtual void Write(::Ice::OutputStreamPtr &) const = 0; virtual void Read(::Ice::InputStreamPtr &) = 0; + virtual ModelPartPtr GetContainedModelPart() override; ModelPartPtr mp; }; diff --git a/slicer/slicer/modelPartsTypes.cpp b/slicer/slicer/modelPartsTypes.cpp index bedfd7d..801759d 100644 --- a/slicer/slicer/modelPartsTypes.cpp +++ b/slicer/slicer/modelPartsTypes.cpp @@ -67,6 +67,12 @@ namespace Slicer { return mp->IsOptional(); } + ModelPartPtr + ModelPartForRootBase::GetContainedModelPart() + { + return mp->GetContainedModelPart(); + } + void ModelPartForSimpleBase::OnEachChild(const ChildHandler &) { } ChildRefPtr ModelPartForSimpleBase::GetAnonChildRef(const HookFilter &) { return NULL; } ChildRefPtr ModelPartForSimpleBase::GetChildRef(const std::string &, const HookFilter &) { return NULL; } |