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

Method readHeader

include/IECorePython/ReaderBinding.h:69–96  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

67 };
68
69 IECore::CompoundObjectPtr readHeader() override
70 {
71 if( this->isSubclassed() )
72 {
73 ScopedGILLock gilLock;
74 try
75 {
76 boost::python::object o = this->methodOverride( "readHeader" );
77 if( o )
78 {
79 IECore::CompoundObjectPtr r = boost::python::extract<IECore::CompoundObjectPtr>( o() );
80 if( !r )
81 {
82 throw IECore::Exception( "readHeader() python method didn't return a CompoundObject." );
83 }
84 return r;
85 }
86 }
87
88 catch( const boost::python::error_already_set & )
89 {
90 ExceptionAlgo::translatePythonException();
91 }
92
93 }
94
95 return T::readHeader();
96 }
97
98};
99

Callers

nothing calls this directly

Calls 2

translatePythonExceptionFunction · 0.85
methodOverrideMethod · 0.80

Tested by

no test coverage detected