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(); }
boost::python::object PvObject::getObject(const std::string& key) const { return toDict()[key]; }
PvObject::operator boost::python::dict() const { return toDict(); }
boost::python::dict PvObject::get() const { return toDict(); }