1
0
Fork 0

hla: add io chanel configuration shortcut hla-local.

This commit is contained in:
Mathias Froehlich 2012-11-21 19:41:51 +01:00
parent 35196ce18c
commit 44ffdcd7d0
2 changed files with 14 additions and 0 deletions

View file

@ -228,6 +228,19 @@ FGIO::parse_port_config( const string& config )
else if ( protocol == "hla" ) { else if ( protocol == "hla" ) {
return new FGHLA(tokens); return new FGHLA(tokens);
} }
else if ( protocol == "hla-local" ) {
// This is just about to bring up some defaults
if (tokens.size() != 2) {
SG_LOG( SG_IO, SG_ALERT, "Ignoring invalid --hla-local option "
"(one argument expected: --hla-local=<federationname>" );
return NULL;
}
tokens.insert(tokens.begin(), "");
tokens.insert(tokens.begin(), "60");
tokens.insert(tokens.begin(), "bi");
tokens.push_back("fg-local.xml");
return new FGHLA(tokens);
}
#endif #endif
else { else {
return NULL; return NULL;

View file

@ -1476,6 +1476,7 @@ struct OptionDesc {
{"multiplay", true, OPTION_CHANNEL | OPTION_MULTI, "", false, "", 0 }, {"multiplay", true, OPTION_CHANNEL | OPTION_MULTI, "", false, "", 0 },
#ifdef FG_HAVE_HLA #ifdef FG_HAVE_HLA
{"hla", true, OPTION_CHANNEL, "", false, "", 0 }, {"hla", true, OPTION_CHANNEL, "", false, "", 0 },
{"hla-local", true, OPTION_CHANNEL, "", false, "", 0 },
#endif #endif
{"trace-read", true, OPTION_FUNC | OPTION_MULTI, "", false, "", fgOptTraceRead }, {"trace-read", true, OPTION_FUNC | OPTION_MULTI, "", false, "", fgOptTraceRead },
{"trace-write", true, OPTION_FUNC | OPTION_MULTI, "", false, "", fgOptTraceWrite }, {"trace-write", true, OPTION_FUNC | OPTION_MULTI, "", false, "", fgOptTraceWrite },