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

Method stringToPath

src/IECoreScene/SceneInterface.cpp:167–177  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

165}
166
167void SceneInterface::stringToPath( const std::string &path, SceneInterface::Path &p )
168{
169 typedef boost::tokenizer<boost::char_separator<char> > Tokenizer;
170 Tokenizer tokens(path, boost::char_separator<char>("/"));
171 Tokenizer::iterator t = tokens.begin();
172 p.clear();
173 for ( ; t != tokens.end(); t++ )
174 {
175 p.push_back( *t );
176 }
177}
178
179std::ostream &operator <<( std::ostream &o, const IECoreScene::SceneInterface::Path &path )
180{

Callers 6

testCurvesPrimitiveMethod · 0.80
testSceneWriteMethod · 0.80
testLinksTimeOffsetMethod · 0.80
testKindMethod · 0.80

Calls 3

beginMethod · 0.45
clearMethod · 0.45
endMethod · 0.45

Tested by 6

testCurvesPrimitiveMethod · 0.64
testSceneWriteMethod · 0.64
testLinksTimeOffsetMethod · 0.64
testKindMethod · 0.64