1 // constellation.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 _CONSTELLATION_H_ 11 #define _CONSTELLATION_H_ 12 13 #include <string> 14 15 class Constellation 16 { 17 public: 18 static Constellation *getConstellation(unsigned int); 19 static Constellation *getConstellation(const std::string&); 20 21 std::string getName(); 22 std::string getGenitive(); 23 std::string getAbbreviation(); 24 25 private: 26 Constellation(const char *_name, const char *_genitive, const char *_abbrev); 27 static void initialize(); 28 29 std::string name; 30 std::string genitive; 31 std::string abbrev; 32 }; 33 34 #endif // _CONSTELLATION_H_ 35 36 37