3ds Max C++ API Reference
generic_class.h File Reference

Macros

#define DECLARE_LOCAL_GENERIC_CLASS(_rootclass, _cls)
 
#define DEFINE_LOCAL_GENERIC_CLASS(_rootClass, _cls)
 

Macro Definition Documentation

◆ DECLARE_LOCAL_GENERIC_CLASS

#define DECLARE_LOCAL_GENERIC_CLASS (   _rootclass,
  _cls 
)
Value:
class _cls##Class : public ValueMetaClass \
{ \
public: \
_cls##Class(const MCHAR* name); \
void collect(); \
}; \
extern _cls##Class _cls##_class; \
class _rootclass; \
typedef Value* (_rootclass::*local_value_vf)(Value**, int); \
class _cls : public Generic \
{ \
public: \
local_value_vf fn_ptr; \
_cls(); \
_cls(const MCHAR* name, local_value_vf fn); \
classof_methods (_cls, Generic); \
void collect(); \
Value* apply(Value** arglist, int count, CallContext* cc = NULL); \
};
#define NULL
Definition: autoptr.h:18
Definition: functions.h:56
virtual void collect()=0
Definition: functions.h:86
Definition: value.h:107
Definition: value.h:379
Value *(MS_LOCAL_ROOT_CLASS::* local_value_vf)(Value **, int)
Definition: local_class.h:71
#define MCHAR
MBCS/Unicode helper defines std::wofstream doesn't mix well with Unicode.
Definition: strbasic.h:42

◆ DEFINE_LOCAL_GENERIC_CLASS

#define DEFINE_LOCAL_GENERIC_CLASS (   _rootClass,
  _cls 
)