src/core/attribute-accessor-helper.h
changeset 2950 9e20fb862cd8
parent 2724 62557689f8f9
child 2965 4b28e9740e3b
--- a/src/core/attribute-accessor-helper.h	Fri Apr 11 11:24:42 2008 -0700
+++ b/src/core/attribute-accessor-helper.h	Fri Apr 11 11:25:21 2008 -0700
@@ -102,6 +102,12 @@
 	v->Set (object->*m_memberVariable);
 	return true;
       }
+      virtual bool HasGetter (void) const {
+        return true;
+      }
+      virtual bool HasSetter (void) const {
+        return true;
+      }
       
       U T::*m_memberVariable;
     };
@@ -127,6 +133,12 @@
 	v->Set ((object->*m_getter) ());
 	return true;
       }
+      virtual bool HasGetter (void) const {
+        return true;
+      }
+      virtual bool HasSetter (void) const {
+        return false;
+      }
       U (T::*m_getter) (void) const;
     };
   return Ptr<const AttributeAccessor> (new MemberMethod (getter), false);
@@ -152,6 +164,12 @@
       virtual bool DoGet (const T *object, V *v) const {
 	return false;
       }
+      virtual bool HasGetter (void) const {
+        return false;
+      }
+      virtual bool HasSetter (void) const {
+        return true;
+      }
       void (T::*m_setter) (U);
     };
   return Ptr<const AttributeAccessor> (new MemberMethod (setter), false);
@@ -180,6 +198,12 @@
 	v->Set ((object->*m_getter) ());
 	return true;
       }
+      virtual bool HasGetter (void) const {
+        return true;
+      }
+      virtual bool HasSetter (void) const {
+        return true;
+      }
       void (T::*m_setter) (U);
       V (T::*m_getter) (void) const;
     };