aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/diceparser.cpp
diff options
context:
space:
mode:
authorRenaud G <renaud@rolisteam.org>2015-04-23 10:52:16 +0200
committerRenaud G <renaud@rolisteam.org>2015-04-23 10:52:16 +0200
commitf9d748791c1d7e3d2dc4f51bec4f86a6732083e4 (patch)
treee78a76f0dda274fb470e81c930cb2d62cb07de92 /diceparser.cpp
parentcd21a9b1252f4d000b18ccecacc9c4e92d59f67b (diff)
downloadOneRoll-f9d748791c1d7e3d2dc4f51bec4f86a6732083e4.tar.gz
OneRoll-f9d748791c1d7e3d2dc4f51bec4f86a6732083e4.zip
improvement of the lib
Diffstat (limited to 'diceparser.cpp')
-rw-r--r--diceparser.cpp12
1 files changed, 10 insertions, 2 deletions
diff --git a/diceparser.cpp b/diceparser.cpp
index f2a7ea5..a2015d8 100644
--- a/diceparser.cpp
+++ b/diceparser.cpp
@@ -915,12 +915,20 @@ bool DiceParser::readOperand(QString& str,ExecutionNode* & node)
}
return false;
}
-void DiceParser::displayDotTree()
+void DiceParser::writeDownDotTree(QString filepath)
{
QString str("digraph ExecutionTree {\n");
m_start->generateDotTree(str);
str.append("}");
- qDebug()<< str;
+
+ /*QFile file(filepath);
+ if(file.open(QIODevice::WriteOnly))
+ {
+ QTextStream in(&file);
+ in << str;
+ }*/
+
+ //qDebug()<< str;
}