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

Method asString

src/IECore/FrameRange.cpp:125–139  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

123}
124
125std::string FrameRange::asString() const
126{
127 if ( m_step != 1 )
128 {
129 return ( boost::format( "%d-%dx%d") % m_start % m_end % m_step ).str();
130 }
131 else if ( m_start != m_end )
132 {
133 return ( boost::format( "%d-%d") % m_start % m_end ).str();
134 }
135 else
136 {
137 return ( boost::format( "%d") % m_start ).str();
138 }
139}
140
141bool FrameRange::isEqualTo( ConstFrameListPtr other ) const
142{

Callers 6

strFunction · 0.45
makeDefaultMethod · 0.45
makeDefaultMethod · 0.45
makeFromObjectMethod · 0.45
setFileSequenceValueMethod · 0.45
setFrameListValueMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected