AccessorFactoryBase Class Reference

AccessorFactoryBase Class Referenceabstract

#include <adskDataAccessor.h>

Class Description

Base class for Accessor factories.

This class must be derived from in order to register/deregister Accessor factories and associate them with specific filename extensions.

See adsk::Data::AccessorFactory for a concrete implementation that should satisfy most needs.

+ Inheritance diagram for AccessorFactoryBase:

Public Member Functions

virtual ~AccessorFactoryBase ()
 Unregisters the factory.
 
virtual std::auto_ptr< Accessorcreate () const =0
 Returns a factory for creating accessors handling the supported file type. More...
 

Protected Member Functions

 AccessorFactoryBase (const std::string &fileNameExtension)
 Registers the factory. More...
 

Constructor & Destructor Documentation

AccessorFactoryBase ( const std::string &  fileNameExtension)
protected

Registers the factory.

Parameters
fileNameExtensionExtension of files that are supported by this accessor factory.

Member Function Documentation

std::auto_ptr< Accessor > create ( ) const
pure virtual

Returns a factory for creating accessors handling the supported file type.

Returns
A new accessor for the file type supported by the concrete factory.

Implemented in AccessorFactory< AccessorType >.


The documentation for this class was generated from the following files:
  • adskDataAccessor.h
  • adskDataAccessor.cpp