#ifndef GLOBALMETHODS_H
#define GLOBALMETHODS_H

// макрос для проверки типа класса, возвращает тип bool
//(object)->IsKindOf(RUNTIME_CLASS(class_name))
#define IS_KINDOF_RUNTIME_CLASS(object, class_name) \
	((object != NULL) && (object)->IsKindOf(RUNTIME_CLASS(class_name)))

/*bool IS_KINDOF_RUNTIME_CLASS(CObject* pObject, PCSTR class_name) const
{
	return (object != NULL) && (object)->IsKindOf(RUNTIME_CLASS(class_name)))
}*/

// указатель на групповой контекст ?
// #define IS_KINDOF_CGroupContext(pCont) (IS_KINDOF_RUNTIME_CLASS(pCont, CGroupContext))
template<class Type> 
bool IS_KINDOF_CGroupContext(Type* pCont)
{
	return IS_KINDOF_RUNTIME_CLASS(pCont, CGroupContext);
};

#endif
