Changeset 11386


Ignore:
Timestamp:
07/13/11 22:43:26 (13 years ago)
Author:
tbretz
Message:
Added output of a lot of information at startup.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/src/Main.h

    • Property svn:keywords set to Rev
    r11349 r11386  
    5757            win << kRed << "ERROR - Couldn't open log-file " << conf.Get<string>("log") << ": " << strerror(errno) << endl;
    5858
     59
    5960    S io_service(wout);
     61
     62    const Time now;
     63    io_service.Write(now, "---------------------------- Program ----------------------------");
     64    io_service.Write(now, " Time: "+now.GetAsStr("%c"));
     65    io_service.Write(now, " Name: "+conf.GetName());
     66    io_service.Write(now, " Compiled: "__DATE__" "__TIME__);
     67    io_service.Write(now, $Rev$);
     68    io_service.Write(now, "---------------------------- Options ----------------------------");
     69    const multimap<string,string> map = conf.GetOptions();
     70    for (multimap<string,string>::const_iterator it=map.begin(); it!=map.end(); it++)
     71        io_service.Write(now, " -> "+it->first+" = "+it->second);
     72    io_service.Write(now, "------------------------ Evaluating options ---------------------");
     73
    6074    const int rc = io_service.EvalConfiguration(conf);
     75    io_service.Message("======================== Starting main loop =====================");
    6176    if (rc>=0)
    6277        return rc;
Note: See TracChangeset for help on using the changeset viewer.