#include <Factory.hxx>
It is basically a container that maps keys with creators. It is not ment to be used directly by the user.
Definition at line 215 of file Factory.hxx.
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) |
Classes | |
struct | FactoryEntry |
Creator& CLAM::Factory< AbstractProductType >::Registry::GetCreator | ( | RegistryKey | creatorId | ) | [inline] |
Definition at line 225 of file Factory.hxx.
References CLAM_ASSERT, and CLAM::Factory< AbstractProductType >::Registry::GetRegisteredNames().
Referenced by CLAM::Factory< CLAM::Processing >::Create().
Creator& CLAM::Factory< AbstractProductType >::Registry::GetCreatorSafe | ( | RegistryKey | creatorId | ) | throw (ErrFactory) [inline] |
Definition at line 242 of file Factory.hxx.
References CLAM::Factory< AbstractProductType >::Registry::GetRegisteredNames().
Referenced by CLAM::Factory< CLAM::Processing >::CreateSafe().
void CLAM::Factory< AbstractProductType >::Registry::AddCreator | ( | RegistryKey | creatorId, | |
Creator * | creator | |||
) | [inline] |
Definition at line 259 of file Factory.hxx.
References CLAM_ASSERT, and CLAM::Factory< AbstractProductType >::Registry::GetRegisteredNames().
Referenced by CLAM::Factory< CLAM::Processing >::AddCreator().
void CLAM::Factory< AbstractProductType >::Registry::AddCreatorWarningRepetitions | ( | RegistryKey | creatorId, | |
Creator * | creator | |||
) | [inline] |
Definition at line 270 of file Factory.hxx.
References CLAM_WARNING.
Referenced by CLAM::Factory< CLAM::Processing >::AddCreatorWarningRepetitions().
void CLAM::Factory< AbstractProductType >::Registry::AddCreatorSafe | ( | RegistryKey | creatorId, | |
Creator * | creator | |||
) | throw (ErrFactory) [inline] |
Definition at line 282 of file Factory.hxx.
Referenced by CLAM::Factory< CLAM::Processing >::AddCreatorSafe().
void CLAM::Factory< AbstractProductType >::Registry::DeleteCreator | ( | RegistryKey | creatorId | ) | [inline] |
Definition at line 288 of file Factory.hxx.
Referenced by CLAM::Factory< CLAM::Processing >::DeleteCreator().
void CLAM::Factory< AbstractProductType >::Registry::RemoveAllCreators | ( | ) | [inline] |
Definition at line 294 of file Factory.hxx.
Referenced by CLAM::Factory< CLAM::Processing >::Clear().
std::size_t CLAM::Factory< AbstractProductType >::Registry::Count | ( | ) | [inline] |
Definition at line 299 of file Factory.hxx.
Referenced by CLAM::Factory< CLAM::Processing >::Count().
void CLAM::Factory< AbstractProductType >::Registry::GetRegisteredNames | ( | std::list< RegistryKey > & | namesList | ) | [inline] |
Definition at line 301 of file Factory.hxx.
Referenced by CLAM::Factory< CLAM::Processing >::GetRegisteredNames().
std::string CLAM::Factory< AbstractProductType >::Registry::GetRegisteredNames | ( | ) | [inline] |
Definition at line 310 of file Factory.hxx.
Referenced by CLAM::Factory< AbstractProductType >::Registry::AddCreator(), CLAM::Factory< AbstractProductType >::Registry::GetCreator(), and CLAM::Factory< AbstractProductType >::Registry::GetCreatorSafe().
bool CLAM::Factory< AbstractProductType >::Registry::KeyExists | ( | const RegistryKey & | key | ) | [inline] |
Definition at line 324 of file Factory.hxx.
Referenced by CLAM::Factory< CLAM::Processing >::KeyExists().
bool CLAM::Factory< AbstractProductType >::Registry::AttributeExists | ( | const std::string & | key, | |
const std::string & | attribute | |||
) | [inline] |
Definition at line 333 of file Factory.hxx.
References CLAM::Factory< AbstractProductType >::Registry::GetPairsFromKey().
Referenced by CLAM::Factory< CLAM::Processing >::AttributeExists().
Keys CLAM::Factory< AbstractProductType >::Registry::GetKeys | ( | const std::string & | attribute, | |
const std::string & | value | |||
) | [inline] |
Get all keys that have attribute==value in its metadata.
Definition at line 345 of file Factory.hxx.
Referenced by CLAM::Factory< CLAM::Processing >::GetKeys().
Keys CLAM::Factory< AbstractProductType >::Registry::GetKeys | ( | ) | [inline] |
Pairs CLAM::Factory< AbstractProductType >::Registry::GetPairsFromKey | ( | const std::string & | key | ) | [inline] |
Return all the metadata available for a product key.
Definition at line 374 of file Factory.hxx.
Referenced by CLAM::Factory< AbstractProductType >::Registry::AttributeExists(), and CLAM::Factory< CLAM::Processing >::GetPairsFromKey().
Values CLAM::Factory< AbstractProductType >::Registry::GetSetOfValues | ( | const std::string & | attribute | ) | [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 386 of file Factory.hxx.
Referenced by CLAM::Factory< CLAM::Processing >::GetSetOfValues().
Values CLAM::Factory< AbstractProductType >::Registry::GetValuesFromAttribute | ( | const std::string & | key, | |
const std::string & | attribute | |||
) | [inline] |
Return the list of values for a metadata attribute for a product key.
Definition at line 416 of file Factory.hxx.
Referenced by CLAM::Factory< AbstractProductType >::Registry::GetValueFromAttribute(), and CLAM::Factory< CLAM::Processing >::GetValuesFromAttribute().
Value CLAM::Factory< AbstractProductType >::Registry::GetValueFromAttribute | ( | const std::string & | key, | |
const std::string & | attribute | |||
) | [inline] |
Return the value for a metadata attribute of product key.
Definition at line 434 of file Factory.hxx.
References CLAM::Factory< AbstractProductType >::Registry::GetValuesFromAttribute().
void CLAM::Factory< AbstractProductType >::Registry::AddAttribute | ( | const std::string & | key, | |
const std::string & | attribute, | |||
const std::string & | value | |||
) | [inline] |
Definition at line 439 of file Factory.hxx.
Referenced by CLAM::Factory< CLAM::Processing >::AddAttribute().