| 9 | | #define CITATION "Ferland, G. J., Korista, K. T., Verner, D. A., Ferguson, J. W., Kingdon, J. B., & Verner, E. M. 1998, PASP, 110, 761" |
| 10 | | #define CITATION_LATEX "\\bibitem[Ferland et al.(1998)]{1998PASP..110..761F} Ferland, G.~J., Korista, K.~T., Verner, D.~A., Ferguson, J.~W., Kingdon, J.~B., \\& Verner, E.~M.\\ 1998, \\pasp, 110, 761" |
| 11 | | #define CITATION_SHORT "Ferland et al. (1998)" |
| | 10 | #if 0 |
| | 11 | static const int CLD_MAJOR = 8; |
| | 12 | static const int CLD_MINOR = 0; |
| | 20 | static const string Url = "$HeadURL$"; |
| | 21 | #endif |
| | 22 | |
| | 23 | static const char* CITATION = "Ferland, G. J., Korista, K. T., Verner, D. A., Ferguson, J. W., Kingdon, J. B., & Verner, E. M. 1998, PASP, 110, 761"; |
| | 24 | static const char* CITATION_LATEX = "\\bibitem[Ferland et al.(1998)]{1998PASP..110..761F} Ferland, G.~J., Korista, K.~T., Verner, D.~A., Ferguson, J.~W., Kingdon, J.~B., \\& Verner, E.~M.\\ 1998, \\pasp, 110, 761"; |
| | 25 | static const char* CITATION_SHORT = "Ferland et al. (1998)"; |
| | 26 | |
| | 27 | class version : public Singleton<version> |
| | 28 | { |
| | 29 | friend class Singleton<version>; |
| | 30 | protected: |
| | 31 | version() |
| | 32 | { |
| | 33 | /* set date and version - this code will need to be modified in the year 2100 */ |
| | 34 | if( YEAR >= 200 ) |
| | 35 | { |
| | 36 | fprintf(ioQQQ,"must update formation of chDate in cdInit \n"); |
| | 37 | TotalInsanity(); |
| | 38 | } |
| | 39 | |
| | 40 | static const char chMonth[12][4] = |
| | 41 | { "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec" }; |
| | 42 | |
| | 43 | /* is this a beta version? 0 for no */ |
| | 44 | nBetaVer = 0; |
| | 45 | |
| | 46 | /* is this a release version? */ |
| | 47 | lgRelease = false; |
| | 48 | |
| | 49 | sprintf( chDate, "%2.2i%3.3s%2.2i", |
| | 50 | YEAR-100, |
| | 51 | chMonth[MONTH], |
| | 52 | DAY ); |
| | 53 | |
| | 54 | sprintf( chVersion, "%2.2i.%2.2i.%2.2i", |
| | 55 | YEAR-100, |
| | 56 | MONTH+1, |
| | 57 | DAY ); |
| | 58 | |
| | 59 | char mode[6]; |
| | 60 | if( sizeof(long) == 4 ) |
| | 61 | strncpy( mode, "ILP32", 6 ); |
| | 62 | else if( sizeof(long) == 8 ) |
| | 63 | strncpy( mode, "LP64", 6 ); |
| | 64 | else |
| | 65 | strncpy( mode, "?????", 6 ); |
| | 66 | |
| | 67 | /* now generate info on how we were compiled, including compiler version */ |
| | 68 | sprintf(chInfo , |
| | 69 | "cdInit compiled on %s in OS %s using the %s %i compiler in %s mode." , |
| | 70 | __DATE__ ,__OS , __COMP , __COMP_VER, mode); |
| | 71 | |
| | 72 | chCitation = CITATION; |
| | 73 | chCitationLatex = CITATION_LATEX; |
| | 74 | chCitationShort = CITATION_SHORT; |
| | 75 | } |
| | 76 | public: |