- /**
- * Gets exclusive hash for string (char pointer) provided on integer range
- *
- * @param str String hashed
- *
- * @return Hash unique value
- */
- static int exclusiveHashInt(const char* str) throw() { return st_string2intExclusiveHash.calcule(std::string(str)); }
+ \param fromFile File which called the method
+ \param fromLine Line number within the file from where the method is called.
+
+ \return Component instance for the class provided at the pattern
+ \warning T class must implement a method in the form:
+ \code
+ static const char* getClassName () throw ();
+ \endcode
+ \see Component
+ */
+ template <typename T> static T* component(const char* fromFile, const int fromLine)
+ throw(RuntimeException) {
+ return functions::componentByName<T> (T::getClassName(), fromFile, fromLine);
+ }