- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Examples

- Class List
- Class Hierarchy
- Class Members

Public Member Functions | Protected Member Functions

# AccessorFactoryBase Class Reference

Search for all occurrences

## Detailed 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.

`#include <adskDataAccessor.h>`

Inheritance diagram for AccessorFactoryBase:
[legend]

List of all members.

## Public Member Functions
virtual | ~AccessorFactoryBase ()
| Unregisters the factory.
virtual std::auto_ptr< Accessor > | create () const =0
| Returns a factory for creating accessors handling the supported file type.
## Protected Member Functions
| AccessorFactoryBase (const std::string &fileNameExtension)
| Registers the factory.

## Constructor & Destructor Documentation

AccessorFactoryBase | ( | const std::string & | fileNameExtension | ) | `[protected]`

Registers the factory.

Parameters:

  fileNameExtension | Extension of files that are supported by this accessor factory.

## Member Function Documentation

std::auto_ptr< Accessor > create | ( |  | ) | const`[pure virtual]`

Search for all occurrences

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 >.

AccessorFactoryBase AccessorFactoryBase AccessorFactoryBase AccessorFactoryBase AccessorFactoryBase AccessorFactoryBase AccessorFactoryBase AccessorFactoryBase AccessorFactoryBase AccessorFactoryBase
AccessorFactoryBase AccessorFactoryBase AccessorFactoryBase AccessorFactoryBase AccessorFactoryBase AccessorFactoryBase AccessorFactoryBase AccessorFactoryBase AccessorFactoryBase AccessorFactoryBase