Exemplo n.º 1
0
/**
 * Handles a user request to read triggers from above textual format.
 */
void OnFileTrigRead(HWND dialog)
{
	char path[MAX_PATH] = "";

	if (!GetOpenFileNameA(dialog, path, MAX_PATH))
		return;

	std::ifstream textin(path, std::ios_base::in);
	TrigXmlReader reader;
	reader.read(textin);
}
Exemplo n.º 2
0
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();
}