Calls the specified Accessor type's default constructor. More...
#include <adskDataAccessor.h>
Public Member Functions | |
std::unique_ptr< Accessor > | create () const override |
Returns a factory for creating accessors handling the supported file type. More... | |
![]() | |
virtual | ~AccessorFactoryBase () |
Unregisters the factory. | |
Additional Inherited Members | |
![]() | |
AccessorFactoryBase (const std::string &fileNameExtension) | |
Registers the factory. More... | |
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" );
|
inlineoverridevirtual |
Returns a factory for creating accessors handling the supported file type.
Implements AccessorFactoryBase.