#ifndef _HCDEBUG_H_ #define _HCDEBUG_H_ class HCDebug { public : //! ctor/dtor HCDebug( const TKString & iClass , const TKString & iName = TKString() ); virtual ~HCDebug( void ); protected : struct Global { TKString mCommand; TKString mHelp; void (* tProc)( const TKList & iList ); }; template struct Command { TKString mCommand; TKString mHelp; void (T::*mProc)( const TKList & iList ); }; //! static class vars static TKList sGlobals; static TKList > sCommands; static TKList sInstances; static TKCriticalSection sInstancesCS; //! data members TKString mClass; TKString mName; //! objects TSM-Handler virtual int DoHandleTSM( const TKList & iList ); template int FindCommand( const TKList & iList , const TKList > & iCommands ); };//class HCDebug #endif//_HCDEBUG_H_