Ignore:
Timestamp:
12/07/03 14:48:11 (21 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Cosy/cosy.cc

    r2568 r2615  
    77
    88#include "MCosy.h"
     9#include "MTime.h"
    910#include "MLogManip.h"
    10 #include "base/timer.h"
    1111
    1212#include "Camera.h"
     
    3636    gLog << endl;
    3737
    38     Timer time;
    39     time.Now();
    40 
    4138    //
    42     // this must move to MGCosy !!!! (or MApplication)
     39    // this must move to MGCosy !!!!
    4340    //
    44     int i=0;
    45     char name[100];
     41    MTime time;
     42    TString name;
    4643    while (1)
    4744    {
    48         sprintf(name, "log/cosy%03d.log", i++);
     45        time.Now();
     46        name = Form("log/cosy_%s.log", (const char*)time.GetFileName());
     47        cout << "Test: " << time.GetFileName() << " " << name << endl;
    4948        if (gSystem->AccessPathName(name, kFileExists))
    5049            break;
     
    7069    //
    7170    clog("- Constructing MCosy.");
    72 
     71/*
    7372    //
    7473    // check for the right usage of the program
     
    8887            break;
    8988        }
    90 
    91     MCosy *cosy = new MCosy(mode, "/dev/dpm_00", 125, lout);
     89*/
     90    MCosy *cosy = new MCosy("/dev/dpm_00", 125, lout);
    9291
    9392    clog("- Starting MCosy.");
     
    134133
    135134    cout << "The End." << endl;
    136 
    137135}
Note: See TracChangeset for help on using the changeset viewer.