FDO API Reference | Feature Data Objects |
#include <ProviderCollection.h>
Inherits FdoIDisposable.
Inheritance diagram for FdoProviderCollection:
Definition at line 36 of file ProviderCollection.h.
Public Member Functions | |
virtual FDO_API bool | Contains (const wchar_t *name) const |
Determines if the collection contains the specified item. | |
virtual FDO_API int | GetCount () const |
Gets the number of items in the collection | |
virtual FDO_API FdoProvider *const | GetItem (int index) const |
Gets the Provider item in the collection at the specified index. | |
virtual FDO_API int | IndexOf (const wchar_t *name) const |
Returns the index of the specified item in the collection. | |
Protected Member Functions | |
virtual void | Add (FdoProvider *provider) |
virtual void | Dispose () |
Dispose this object. | |
FdoProviderCollection () | |
Constructs a default instance of a FdoProviderCollection. | |
virtual void | Remove (const wchar_t *name) |
virtual | ~FdoProviderCollection () |
Default destructor for FdoProviderCollection. | |
Friends | |
class | FdoProviderRegistry |
|
Constructs a default instance of a FdoProviderCollection.
|
|
Default destructor for FdoProviderCollection.
|
|
Adds a new provider to the collection. The pointer passed to the Add method is stored. Throws an invalid argument exception if the collection alreay holds a provider with the same name Adding a provider to the collection only adds the item to the buffered vector contained in the collection. The provider is not persisted beyond the collection. The collection will attempt to deallocate the provider when the collection is destructed. |
|
Determines if the collection contains the specified item.
|
|
Dispose this object.
Implements FdoIDisposable. |
|
Gets the number of items in the collection
|
|
Gets the Provider item in the collection at the specified index.
|
|
Returns the index of the specified item in the collection.
|
|
Removes a provider from the collection. The allocated provider is freed. removing a provider from the collection only removes the item from the buffered vector contained in the collection. The provider is not removed from the persistant data store. |
|
Instances of interface FdoProviderRegistry are responsible for the lifespan of FdoProviderCollection Definition at line 40 of file ProviderCollection.h. |
Comments or suggestions? Send us feedback. |