Beispiel #1
0
int main(int argc, char *argv[])
{
    QCoreApplication a(argc, argv);
    QFile toDict("Dictionary.txt");
    toDict.open(QIODevice::ReadWrite);
    TestUser test(&toDict);
    int number = test.test(20);
    number -= 250;
    QTextStream in(stdin);
    QString filename;
    in >> filename;
    QFile toTranslate(filename);
    QFile toOutput("output.txt");
    toTranslate.open(QIODevice::ReadWrite);
    toOutput.open(QIODevice::ReadWrite);
    toDict.reset();
    TranslationOfFile trans(&toDict);
    trans.translateFile(toTranslate, toOutput, number);
    toOutput.close();
    toDict.close();
    toTranslate.close();


}
Beispiel #2
0
boost::python::object PvObject::getObject(const std::string& key) const
{
    return toDict()[key];
}
Beispiel #3
0
PvObject::operator boost::python::dict() const
{
    return toDict();
}
Beispiel #4
0
boost::python::dict PvObject::get() const
{
    return toDict();
}