Changeset 10267 for trunk


Ignore:
Timestamp:
03/30/11 15:37:28 (14 years ago)
Author:
tbretz
Message:
Changed to the new usage of the Converter class.
File:
1 edited

Legend:

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

    r10183 r10267  
    552552    // into a data block which will be attached to the event
    553553    lout << kBlue << cmd;
    554     Converter c(lout, fmt, str.substr(p0));
    555 
    556     // Parsing was not successfull
    557     if (!c.GetRc())
     554
     555    const Converter conv(lout, fmt);
     556
     557    const vector<char> v = conv.GetVector(str.substr(p0));
     558    if (!conv.valid() || v.empty()!=conv.empty())
    558559    {
    559560        lout << kRed << "Couldn't properly parse the input... ignored." << endl;
     
    561562    }
    562563
    563     const int rc = DimClient::sendCommand(cmd.c_str(), c.Ptr(), c.Size());
     564    const int rc = DimClient::sendCommand(cmd.c_str(), (void*)v.data(), v.size());
    564565    if (rc)
    565566        lout << kGreen << "Command " << cmd << " emitted successfully to DimClient." << endl;
Note: See TracChangeset for help on using the changeset viewer.