Changeset 11470 for trunk/FACT++/src


Ignore:
Timestamp:
07/19/11 16:38:17 (13 years ago)
Author:
tbretz
Message:
Improved output.
File:
1 edited

Legend:

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

    r11401 r11470  
    5757            win << kRed << "ERROR - Couldn't open log-file " << conf.Get<string>("log") << ": " << strerror(errno) << endl;
    5858
    59 
    6059    S io_service(wout);
    6160
     61    const boost::filesystem::path path(conf.GetName());
     62
     63    const string pname = path.parent_path().string();
     64    const string fname = path.filename();
     65
    6266    const Time now;
    63     io_service.Write(now, "/--------------------------- Program ----------------------------");
    64     io_service.Write(now, "| Program:  "PACKAGE_STRING" ("+conf.GetName()+")");
     67    io_service.Write(now, "/----------------------- Program ------------------------");
     68    io_service.Write(now, "| Program:  "PACKAGE_STRING" ("+fname+")");
     69    io_service.Write(now, "| CallPath: "+pname);
    6570    io_service.Write(now, "| Compiled: "__DATE__" "__TIME__);
    6671    io_service.Write(now, "| Revision: "REVISION);
     
    6873    io_service.Write(now, "| URL:      "PACKAGE_URL);
    6974    io_service.Write(now, "| Start:    "+now.GetAsStr("%c"));
    70     io_service.Write(now, "\\--------------------------- Options ----------------------------");
     75    io_service.Write(now, "\\----------------------- Options ------------------------");
    7176    const multimap<string,string> map = conf.GetOptions();
    7277    for (multimap<string,string>::const_iterator it=map.begin(); it!=map.end(); it++)
    7378        io_service.Write(now, ": "+it->first+(it->second.empty()?"":" = ")+it->second);
    74     io_service.Write(now, "\\----------------------- Evaluating options ---------------------");
     79    io_service.Write(now, "\\------------------- Evaluating options -----------------");
    7580
    7681    const int rc = io_service.EvalConfiguration(conf);
    77     io_service.Message("======================== Starting main loop =====================");
     82    io_service.Message("==================== Starting main loop =================");
    7883    if (rc>=0)
    7984        return rc;
Note: See TracChangeset for help on using the changeset viewer.