MCPcopy Create free account
hub / github.com/ImageEngine/cortex / convertPresets

Function convertPresets

src/IECore/FrameListParameter.cpp:47–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45IE_CORE_DEFINERUNTIMETYPED( FrameListParameter );
46
47static StringParameter::ObjectPresetsContainer convertPresets( const FrameListParameter::PresetsContainer &p )
48{
49 StringParameter::ObjectPresetsContainer result;
50 for( FrameListParameter::PresetsContainer::const_iterator it=p.begin(); it!=p.end(); it++ )
51 {
52 result.push_back( StringParameter::ObjectPresetsContainer::value_type( it->first, new StringData( it->second ) ) );
53 }
54 return result;
55}
56
57FrameListParameter::FrameListParameter( const std::string &name, const std::string &description, const std::string &defaultValue, bool allowEmptyList,
58 const PresetsContainer &presets, bool presetsOnly, ConstCompoundObjectPtr userData )

Callers 1

FrameListParameterMethod · 0.70

Calls 2

beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected