00001 // constellation.h 00002 // 00003 // Copyright (C) 2001, Chris Laurel <claurel@shatters.net> 00004 // 00005 // This program is free software; you can redistribute it and/or 00006 // modify it under the terms of the GNU General Public License 00007 // as published by the Free Software Foundation; either version 2 00008 // of the License, or (at your option) any later version. 00009 00010 #ifndef _CONSTELLATION_H_ 00011 #define _CONSTELLATION_H_ 00012 00013 #include <string> 00014 00015 class Constellation 00016 { 00017 public: 00018 static Constellation *getConstellation(unsigned int); 00019 static Constellation *getConstellation(const std::string&); 00020 00021 std::string getName(); 00022 std::string getGenitive(); 00023 std::string getAbbreviation(); 00024 00025 private: 00026 Constellation(const char *_name, const char *_genitive, const char *_abbrev); 00027 static void initialize(); 00028 00029 std::string name; 00030 std::string genitive; 00031 std::string abbrev; 00032 }; 00033 00034 #endif // _CONSTELLATION_H_ 00035 00036
1.4.1