| 51 | static cActionLibrary& GetInstance(); |
| 52 | |
| 53 | template<typename ClassType> bool Register(const Apto::String& key) |
| 54 | { |
| 55 | ClassDescFunction func; |
| 56 | Apto::String lkey(key.AsLower()); |
| 57 | if (m_desc_funcs.Get(lkey, func)) return false; |
| 58 | m_desc_funcs.Set(lkey, &ClassType::GetDescription); |
| 59 | return m_factory.Register<ClassType>(lkey); |
| 60 | } |
| 61 | bool Unregister(const Apto::String& key) |
| 62 | { |
| 63 | Apto::String lkey(key.AsLower()); |