Cortex  10.0.0-a4
Public Member Functions | List of all members
IECore::Reader::ReaderDescription< T > Class Template Reference

#include <Reader.h>

Public Member Functions

 ReaderDescription (const std::string &extensions)
 

Detailed Description

template<class T>
class IECore::Reader::ReaderDescription< T >

This utility class is provided to help with Reader registration. By having a private static const instance of one of these in your class, it will call registerReader() for you when it is constructed. It assumes your Reader class has a constructor taking a fileName as const std::string and also has a static canRead function matching the CanReadFn type. Please note that it is essential that the canRead function simply returns true or false and does not throw exceptions under any circumstances.


The documentation for this class was generated from the following file: