コード例 #1
0
ファイル: JobState.hpp プロジェクト: ChengXinDL/OpenStudio
 JobState(const boost::optional<DateTime> &t_lastRun, 
          const JobErrors &t_errors, 
          const Files &t_outputFiles,
          const AdvancedStatus &t_status,
          const openstudio::path &t_outdir)
   : lastRun(t_lastRun ? toQDateTime(*t_lastRun) : boost::optional<QDateTime>()), 
     errors(t_errors), 
     outputFiles(t_outputFiles), 
     status(t_status),
     outdir(t_outdir)
 {
 }
コード例 #2
0
ファイル: instrumentdata.cpp プロジェクト: ndtmike/Aggralinx
InstrumentData::InstrumentData(const QString& dataIn)
{

    rawInput = dataIn;

    qDebug()<< dataIn;

    QTextStream textin(&rawInput);
    QString word;

    while( textin.status() == QTextStream::Ok) {
            textin >> word;
            word = cleanWord(word);
            if(word != "" && word != "Stone") Words.push_back(word); //special case stuff
    }

    TestDate = toQDate();
    TestTime = toQTime();
    TestDateTime = toQDateTime();
    TestMaterial = toMaterial();
    TestReading = readingToDouble();
    TestPercentage = percentageToDouble();
}