View | Details | Raw Unified | Return to bug 82
Collapse All | Expand All

(-)a/src/core/default-value.h (+15 lines)
 Lines 97-102   class DefaultValueList Link Here 
97
  static Iterator End (void);
97
  static Iterator End (void);
98
  static void Remove (const std::string &name);
98
  static void Remove (const std::string &name);
99
  static void Add (DefaultValueBase *defaultValue);
99
  static void Add (DefaultValueBase *defaultValue);
100
101
  template <typename T>
102
  static const T* Get (const std::string &name)
103
  {
104
    for (Iterator iter = Begin (); iter != End (); iter++)
105
      {
106
        const DefaultValueBase *value = *iter;
107
        if (value->GetName () == name)
108
          {
109
            return dynamic_cast<const T*> (value);
110
          }
111
      }
112
    return NULL;
113
  }
114
100
 private:
115
 private:
101
  typedef std::list<DefaultValueBase *> List;
116
  typedef std::list<DefaultValueBase *> List;
102
  static List *GetList (void);
117
  static List *GetList (void);

Return to bug 82