]> git.mxchange.org Git - flightgear.git/blob - src/FDM/YASim/Version.cpp
Pull Sound-manager out of FGGlobals
[flightgear.git] / src / FDM / YASim / Version.cpp
1 #ifdef HAVE_CONFIG_H
2 #  include "config.h"
3 #endif
4
5 #include "Version.hpp"
6 #include <simgear/debug/logstream.hxx>
7 #include <string>
8
9 namespace yasim {
10 void Version::setVersion( const char * version )
11 {
12   const std::string v(version);
13   
14   if( v ==  "YASIM_VERSION_ORIGINAL" ) {
15     _version = YASIM_VERSION_ORIGINAL;
16   } else if( v == "YASIM_VERSION_32" ) {
17     _version = YASIM_VERSION_32;
18   } else if( v == "YASIM_VERSION_CURRENT" ) {
19     _version = YASIM_VERSION_CURRENT;
20   } else {
21     SG_LOG(SG_FLIGHT,SG_ALERT,"unknown yasim version '" << version << "' ignored, using YASIM_VERSION_ORIGINAL");
22   }
23 }
24
25 } // namespace yasim