| 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 |
nothing calls this directly
no test coverage detected