📄 rulesbase.h.svn-base
字号:
/* * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *//*! \file RulesBase.h<pre><b>File:</b> RulesBase.h<b>Project:</b> Robocup Soccer Simulation Team: MecaTeam<b>Authors:</b> Orivaldo Vieira e Augusto Loureiro<b>Created:</b> 10/09/2006<b>Last Revision:</b> $ID$<b>Contents:</b> Este arquivo cont�m a defini��o da classe RulesBase. A RulesBase � classe que disponibiliza a a Base de Regras para um sistema baseado em conhecimento.<hr size=2><h2><b>Changes</b></h2><b>Date</b> <b>Author</b> <b>Comment</b>19/09/2006 Orivaldo Vieira Documenta��o</pre>*/#ifndef RULESBASE_H#define RULESBASE_H#include "Rule.h"#include <vector>using std::string;using std::vector;class RulesBase { public: RulesBase (); void addPtrRule (Rule *p_rule); void loadRulesFile (char *fileName); bool setRulePosition (unsigned int pos); Rule* getPtrFirstRule (); Rule* getPtrNextRule (); vector<Rule*>* getPtrVectorRules (); void print (); static const string RulesPath; private: vector<Rule*> m_rulesVector; unsigned int m_vectorIndex;};#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -