1
0
Fork 0
flightgear/src/AIModel/AIScenario.hxx
ehofman b24dbb3f8b Alex Romosan:
I tried to make sure accessor functions which return by reference act
on const objects. also replaced some iterators with const_iterator
and a few return/pass by reference that were missed the first time
around.
2005-10-26 09:03:49 +00:00

56 lines
1.4 KiB
C++

// FGAIScenario - class for loading an AI scenario
// Written by David Culp, started May 2004
// - davidculp2@comcast.net
//
// 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., 675 Mass Ave, Cambridge, MA 02139, USA.
#ifndef _FG_AISCENARIO_HXX
#define _FG_AISCENARIO_HXX
#include <simgear/compiler.h>
#include <vector>
#include <string>
#include "AIBase.hxx"
SG_USING_STD(vector);
SG_USING_STD(string);
class FGAIScenario {
public:
FGAIScenario(const string &filename);
~FGAIScenario();
FGAIModelEntity* const getNextEntry( void );
int nEntries( void );
private:
typedef vector <FGAIModelEntity*> entry_vector_type;
typedef entry_vector_type::const_iterator entry_vector_iterator;
entry_vector_type entries;
entry_vector_iterator entry_iterator;
};
#endif // _FG_AISCENARIO_HXX