void ClipsRuleMgr::getAllTemplatesFromClips() { void *firstT; firstT = EnvGetNextDeftemplate(m_theEnv, 0); cout<<"ClipsRuleMgr::GetAllTemplatesFromClips:first template name:"<<EnvGetDeftemplateName(m_theEnv, firstT)<<endl; while((firstT = EnvGetNextDeftemplate(m_theEnv,firstT)) != 0) { m_templateNames.push_back(EnvGetDeftemplateName(m_theEnv, firstT)); cout<<"ClipsRuleMgr::GetAllTemplatesFromClips:template name:"<<EnvGetDeftemplateName(m_theEnv, firstT)<<endl; } }
std::string Template::name() { if ( m_cobj ) return EnvGetDeftemplateName( m_environment.cobj(), m_cobj ); else return std::string(); }
globle const char *GetDeftemplateName( void *theDeftemplate) { return EnvGetDeftemplateName(GetCurrentEnvironment(),theDeftemplate); }