#define VIRTUALPROPERTY_BOTH(type, name, setter, getter) \
virtual void setter ( type value ) = NULL; \
virtual type getter () = NULL; \
__declspec(property(put = setter, get = getter)) type name;
#define VIRTUALPROPERTY_GET(type, name, getter) \
virtual type getter () = NULL; \
__declspec(property(get = getter)) type name;
i know the __declspec(property(put = function, get = function)) type variable
but what is that called and what it does ? Sorry couldn't find any direct answer
Please and thanks
edit: also what about this
1 2
#define PROPERTY_BOTH(type, name, setter, getter) __declspec(property(put = setter, get = getter)) type name;
#define PROPERTY_GET(type, name, getter) __declspec(property(get = getter)) type name;
Microsoft Specific
This attribute can be applied to non-static "virtual data members" in a class or structure definition. The compiler treats these "virtual data members" as data members by changing their references into function calls.