Ignore:
Timestamp:
Apr 21, 2011, 9:50:11 AM (9 years ago)
Author:
tbretz
Message:
Added new class DimNetworkInfo which initialized members secs and millisecs which remain uninitialized by Dim; set the default size of the nolink argument to 0, in this way we can distinguish between an empty string and nolink.
File:
1 edited

Legend:

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

    r10422 r10439  
    112112MessageDimRX::MessageDimRX(const std::string &name, MessageImp &imp)
    113113: fMinLogLevel(0), fConnected(false), fMsg(imp),
    114 fDimMessage((name+"/MESSAGE").c_str(), const_cast<char*>(""), this)
     114fDimMessage((name+"/MESSAGE").c_str(), const_cast<char*>(""), 0, this)
    115115{
    116116}
     
    127127        return;
    128128
     129    fConnected = getInfo()->getSize()!=0;
     130
    129131    // The server is diconnected. Do nothing
    130     if (getInfo()->getTimestamp()==0 || getInfo()->getSize()==1)
     132    if (!fConnected)
    131133    {
    132         fConnected=false;
    133134        fMsg.Message("Disconnected.");
    134135        return;
    135136    }
    136 
    137     fConnected=true;
    138137
    139138    // skip all messages with a severity smaller than the minimum log level
Note: See TracChangeset for help on using the changeset viewer.