X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=simgear%2Fmath%2Fsg_types.hxx;h=f413c26b58359eb66f13f00c6773132562e2bffd;hb=578af00b0d48100c540154f54293a1b77a0655fe;hp=a0d89029421a67f019d64c7d8b109dfc40d1d736;hpb=e6241a2f737d6e646607bc2b70e9c1a34d9a270c;p=simgear.git diff --git a/simgear/math/sg_types.hxx b/simgear/math/sg_types.hxx index a0d89029..f413c26b 100644 --- a/simgear/math/sg_types.hxx +++ b/simgear/math/sg_types.hxx @@ -1,8 +1,11 @@ -// fg_types.hxx -- commonly used types I don't want to have to keep redefining -// +/** + * \file sg_types.hxx + * Commonly used types I don't want to have to keep redefining. + */ + // Written by Curtis Olson, started March 1999. // -// Copyright (C) 1999 Curtis L. Olson - curt@flightgear.org +// Copyright (C) 1999 Curtis L. Olson - http://www.flightgear.org/~curt // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Library General Public @@ -14,61 +17,51 @@ // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Library General Public License for more details. // -// You should have received a copy of the GNU Library General Public -// License along with this library; if not, write to the -// Free Software Foundation, Inc., 59 Temple Place - Suite 330, -// Boston, MA 02111-1307, USA. +// 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. // // $Id$ -#ifndef _FG_TYPES_HXX -#define _FG_TYPES_HXX +#ifndef _SG_TYPES_HXX +#define _SG_TYPES_HXX -#ifndef __cplusplus +#ifndef __cplusplus # error This library requires C++ -#endif +#endif #include -#include STL_STRING +#include #include -#include - -FG_USING_STD(vector); -FG_USING_STD(string); +class Point3D; +using std::vector; +using std::string; +/** STL vector list of ints */ typedef vector < int > int_list; typedef int_list::iterator int_list_iterator; typedef int_list::const_iterator const_int_list_iterator; +/** STL vector list of doubles */ +typedef vector < double > double_list; +typedef double_list::iterator double_list_iterator; +typedef double_list::const_iterator const_double_list_iterator; + +/** STL vector list of Point3D */ typedef vector < Point3D > point_list; typedef point_list::iterator point_list_iterator; typedef point_list::const_iterator const_point_list_iterator; +/** STL vector list of strings */ typedef vector < string > string_list; typedef string_list::iterator string_list_iterator; typedef string_list::const_iterator const_string_list_iterator; - -class point2d { -public: - union { - double x; - double dist; - double lon; - }; - union { - double y; - double theta; - double lat; - }; -}; - - -#endif // _FG_TYPES_HXX +#endif // _SG_TYPES_HXX