1 // favorites.h 2 // 3 // Copyright (C) 2001, Chris Laurel <claurel@shatters.net> 4 // 5 // This program is free software; you can redistribute it and/or 6 // modify it under the terms of the GNU General Public License 7 // as published by the Free Software Foundation; either version 2 8 // of the License, or (at your option) any later version. 9 10 #ifndef _FAVORITES_H_ 11 #define _FAVORITES_H_ 12 13 #include <string> 14 #include <vector> 15 #include <iostream> 16 #include <celmath/vecmath.h> 17 #include <celmath/quaternion.h> 18 #include <celengine/observer.h> 19 20 21 struct FavoritesEntry 22 { 23 std::string name; 24 std::string selectionName; 25 26 UniversalCoord position; 27 Quatf orientation; 28 double jd; 29 double fov; 30 bool isFolder; 31 std::string parentFolder; 32 33 ObserverFrame::CoordinateSystem coordSys; 34 }; 35 36 typedef std::vector<FavoritesEntry*> FavoritesList; 37 38 FavoritesList* ReadFavoritesList(std::istream&); 39 void WriteFavoritesList(FavoritesList&, std::ostream&); 40 41 #endif // _FAVORITES_H_ 42