CLAM-Development
1.4.0
|
This class is an implementation class of the Factory. More...
#include <Factory.hxx>
Classes | |
struct | FactoryEntry |
Public Member Functions | |
Creator & | GetCreator (RegistryKey creatorId) |
Creator & | GetCreatorSafe (RegistryKey creatorId) throw (ErrFactory) |
void | AddCreator (RegistryKey creatorId, Creator *creator) |
void | AddCreatorWarningRepetitions (RegistryKey creatorId, Creator *creator) |
void | AddCreatorSafe (RegistryKey creatorId, Creator *creator) throw (ErrFactory) |
void | DeleteCreator (RegistryKey creatorId) |
void | RemoveAllCreators () |
std::size_t | Count () |
void | GetRegisteredNames (std::list< RegistryKey > &namesList) |
std::string | GetRegisteredNames () |
bool | KeyExists (const RegistryKey &key) |
bool | AttributeExists (const std::string &key, const std::string &attribute) |
Keys | GetKeys (const std::string &attribute, const std::string &value) |
Get all keys that have attribute==value in its metadata. | |
Keys | GetKeys () |
Get all keys in the factory. | |
Pairs | GetPairsFromKey (const std::string &key) |
Return all the metadata available for a product key. | |
Values | GetSetOfValues (const std::string &attribute) |
Get the set of all values present for a given metadata attribute. Example GetSetOfValues("category") could return ["modulators","generators","reverbs"] without repeated items. | |
Values | GetValuesFromAttribute (const std::string &key, const std::string &attribute) |
Return the list of values for a metadata attribute for a product key. | |
Value | GetValueFromAttribute (const std::string &key, const std::string &attribute) |
Return the value for a metadata attribute of product key. | |
void | AddAttribute (const std::string &key, const std::string &attribute, const std::string &value) |
This class is an implementation class of the Factory.
It is basically a container that maps keys with creators. It is not ment to be used directly by the user.
Definition at line 214 of file Factory.hxx.
|
inline |
Definition at line 438 of file Factory.hxx.
Referenced by CLAM::Factory< Processing >::AddAttribute().
|
inline |
Definition at line 258 of file Factory.hxx.
References CLAM_ASSERT, and CLAM::Factory< AbstractProductType >::Registry::GetRegisteredNames().
Referenced by CLAM::Factory< Processing >::AddCreator().
|
inline |
Definition at line 281 of file Factory.hxx.
Referenced by CLAM::Factory< Processing >::AddCreatorSafe().
|
inline |
Definition at line 269 of file Factory.hxx.
References CLAM_WARNING.
Referenced by CLAM::Factory< Processing >::AddCreatorWarningRepetitions().
|
inline |
Definition at line 332 of file Factory.hxx.
References CLAM::Factory< AbstractProductType >::Registry::GetPairsFromKey().
Referenced by CLAM::Factory< Processing >::AttributeExists().
|
inline |
Definition at line 298 of file Factory.hxx.
Referenced by CLAM::Factory< Processing >::Count().
|
inline |
Definition at line 287 of file Factory.hxx.
Referenced by CLAM::Factory< Processing >::DeleteCreator().
|
inline |
Definition at line 224 of file Factory.hxx.
References CLAM_ASSERT, and CLAM::Factory< AbstractProductType >::Registry::GetRegisteredNames().
Referenced by CLAM::Factory< Processing >::Create().
|
inline |
Definition at line 241 of file Factory.hxx.
References CLAM::Factory< AbstractProductType >::Registry::GetRegisteredNames().
Referenced by CLAM::Factory< Processing >::CreateSafe().
|
inline |
Get all keys that have attribute==value in its metadata.
Definition at line 344 of file Factory.hxx.
Referenced by CLAM::Factory< Processing >::GetKeys().
|
inline |
Get all keys in the factory.
Definition at line 368 of file Factory.hxx.
|
inline |
Return all the metadata available for a product key.
Definition at line 373 of file Factory.hxx.
Referenced by CLAM::Factory< AbstractProductType >::Registry::AttributeExists(), and CLAM::Factory< Processing >::GetPairsFromKey().
|
inline |
Definition at line 300 of file Factory.hxx.
Referenced by CLAM::Factory< Processing >::GetRegisteredNames().
|
inline |
Definition at line 309 of file Factory.hxx.
Referenced by CLAM::Factory< AbstractProductType >::Registry::AddCreator(), CLAM::Factory< AbstractProductType >::Registry::GetCreator(), and CLAM::Factory< AbstractProductType >::Registry::GetCreatorSafe().
|
inline |
Get the set of all values present for a given metadata attribute. Example GetSetOfValues("category") could return ["modulators","generators","reverbs"] without repeated items.
Definition at line 385 of file Factory.hxx.
Referenced by CLAM::Factory< Processing >::GetSetOfValues().
|
inline |
Return the value for a metadata attribute of product key.
Definition at line 433 of file Factory.hxx.
References CLAM::Factory< AbstractProductType >::Registry::GetValuesFromAttribute().
|
inline |
Return the list of values for a metadata attribute for a product key.
Definition at line 415 of file Factory.hxx.
Referenced by CLAM::Factory< AbstractProductType >::Registry::GetValueFromAttribute(), and CLAM::Factory< Processing >::GetValuesFromAttribute().
|
inline |
Definition at line 323 of file Factory.hxx.
Referenced by CLAM::Factory< Processing >::KeyExists().
|
inline |
Definition at line 293 of file Factory.hxx.
Referenced by CLAM::Factory< Processing >::Clear().