TuttleOFX  1
TuttleOFX/libraries/tuttle/src/tuttle/host/ofx/attribute/OfxhParamPage.cpp
Go to the documentation of this file.
00001 #include "OfxhParamPage.hpp"
00002 
00003 namespace tuttle {
00004 namespace host {
00005 namespace ofx {
00006 namespace attribute {
00007 
00008 const std::map<int, OfxhParam*>& OfxhParamPage::getChildren() const
00009 {
00010         // HACK!!!! this really should be done with a notify hook so we don't force
00011         // _children to be mutable
00012         if( _children.size() == 0 )
00013         {
00014                 int nChildren = getProperties().getDimension( kOfxParamPropPageChild );
00015                 for( int i = 0; i < nChildren; i++ )
00016                 {
00017                         std::string childName       = getProperties().getStringProperty( kOfxParamPropPageChild, i );
00018                         attribute::OfxhParam* child = &_paramSetInstance->getParam( childName );
00019                         _children[i] = child;
00020                 }
00021         }
00022         return _children;
00023 }
00024 
00025 }
00026 }
00027 }
00028 }
00029