Calls the specified Accessor type's default constructor.
Accessor factories automatically register themselves upon construction and deregister themselves upon destruction. So the creator of a factory must maintain it in-scope as long as the factory for the supported file extension(s) is needed. Typically, this will be a file-scope variable declared with the accessor implementation.
For example (in myAccessor.cpp), to support *.myext files:
class MyAccessor : public adsk::Data::Accessor { ... };
adsk::Data::AccessorFactory< MyAccessor > myFactory( "myext" );
#include <adskDataAccessor.h>

Public Member Functions | |
| virtual std::auto_ptr< Accessor > | create () const |
| Returns a factory for creating accessors handling the supported file type. | |
| virtual std::auto_ptr< Accessor > create | ( | ) | const [inline, virtual] |
Returns a factory for creating accessors handling the supported file type.
Implements AccessorFactoryBase.