| 50 | } |
| 51 | |
| 52 | template<class EntryType> bool Add(const cString& name, const cString& desc, |
| 53 | EntryType (TargetType::*funR)() const, void (TargetType::*funS)(EntryType) = NULL, |
| 54 | int compare = 0, const cString& null = "0", const cString& html_cell = "align=center") |
| 55 | { |
| 56 | tDataEntry<TargetType>* new_entry = |
| 57 | new tDataEntryOfType<TargetType, EntryType ()>(name, desc, funR, funS, compare, null, html_cell); |
| 58 | m_entry_dict.Set((const char*)name, new_entry); |
| 59 | return true; |
| 60 | } |
| 61 | |
| 62 | bool Print(const cString& name, std::ostream& fp) const |
| 63 | { |