Ignore:
Timestamp:
05/23/12 19:32:56 (12 years ago)
Author:
tbretz
Message:
Removed the DimServiceInfoList; unified the Printing of states.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/src/ratescan.cc

    r13838 r13844  
    4242    };
    4343
    44     DimServiceInfoListImp fNetwork;
    45 
    4644    DimVersion fDim;
    4745    DimState   fDimFTM;
     
    224222    }
    225223
    226     const State GetState(const DimState &s) const
    227     {
    228         return fNetwork.GetState(s.name(), s.state());
    229     }
    230 
    231     void PrintState(const DimState &state) const
    232     {
    233         const State rc = GetState(state);
    234 
    235         Out() << state.time().GetAsStr("%H:%M:%S.%f").substr(0, 12) << " - ";
    236         Out() << kBold << state.name() << ": ";
    237         if (rc.index==-3)
    238         {
    239             Out() << kReset << "Offline" << endl;
    240             return;
    241         }
    242         if (rc.index==-2)
    243             Out() << state.state();
    244         else
    245             Out() << rc.name << "[" << rc.index << "]";
    246         Out() << kReset << " - " << kBlue << rc.comment << endl;
    247     }
    248 
    249224    int Print() const
    250225    {
    251         Out() << fDim.time().GetAsStr("%H:%M:%S.%f").substr(0, 12) << " - ";
    252         Out() << kBold << "DIM_DNS: " << fDim.version() << endl;
    253 
    254         PrintState(fDimFTM);
     226        Out() << fDim << endl;
     227        Out() << fDimFTM << endl;
    255228
    256229        return GetCurrentState();
Note: See TracChangeset for help on using the changeset viewer.