1.重新组织了文件。

2.准备试试把所有元素都读入内存中。

Signed-off-by: facat@lab.com <facat@lab.com>
This commit is contained in:
facat@lab.com 2014-11-21 17:47:58 +08:00
parent 5d44332c13
commit 3a555bd2c1
35 changed files with 109 additions and 41 deletions

5
.gitignore vendored
View File

@ -1,3 +1,6 @@
*.pro.user*
*.bak
*.orig
*.orig
debug
release
Makefile*

View File

@ -1,39 +0,0 @@
QT += core
QT -= gui
TARGET = Qt_AsyCallExtApp
CONFIG += console
CONFIG -= app_bundle
TEMPLATE = app
SOURCES += main.cpp \
derivedqthread.cpp \
cimparserbatch.cpp \
readxml/transformerparser.cpp \
readxml/topology.cpp \
readxml/qt_readxml.cpp \
readxml/output5.cpp \
readxml/output4.cpp \
readxml/output3.cpp \
readxml/output2.cpp \
readxml/output1.cpp \
readxml/output.cpp \
readxml/mainfun.cpp \
readxml/linetypeparser.cpp \
readxml/input.cpp \
readxml/DealData.cpp \
readxml/callmain.cpp \
readxml/Interface.cpp \
readxml/output6.cpp \
readxml/output7.cpp
HEADERS += \
derivedqthread.h \
cimparserbatch.h \
readxml/transformerparser.h \
readxml/qt_readxml.h \
readxml/linetypeparser.h \
readxml/head.h

5
Solution.pro Normal file
View File

@ -0,0 +1,5 @@
TEMPLATE = subdirs
SUBDIRS=cimparser \
core \
testHasttable

24
cimparser/cimparser.pro Normal file
View File

@ -0,0 +1,24 @@
#-------------------------------------------------
#
# Project created by QtCreator 2014-11-21T17:41:46
#
#-------------------------------------------------
QT += core
QT -= gui
TARGET = cimparser
CONFIG += console
CONFIG -= app_bundle
TEMPLATE = app
SOURCES += main.cpp \
cimparserbatch.cpp \
derivedqthread.cpp
HEADERS += \
cimparserbatch.h \
derivedqthread.h

41
core/core.pro Normal file
View File

@ -0,0 +1,41 @@
#-------------------------------------------------
#
# Project created by QtCreator 2014-11-21T17:45:18
#
#-------------------------------------------------
QT += core
QT -= gui
TARGET = core
CONFIG += console
CONFIG -= app_bundle
TEMPLATE = app
SOURCES += main.cpp \
callmain.cpp \
DealData.cpp \
input.cpp \
Interface.cpp \
linetypeparser.cpp \
mainfun.cpp \
output.cpp \
output1.cpp \
output2.cpp \
output3.cpp \
output4.cpp \
output5.cpp \
output6.cpp \
output7.cpp \
qt_readxml.cpp \
topology.cpp \
transformerparser.cpp
HEADERS += \
head.h \
linetypeparser.h \
qt_readxml.h \
transformerparser.h

8
core/main.cpp Normal file
View File

@ -0,0 +1,8 @@
#include <QCoreApplication>
int main(int argc, char *argv[])
{
QCoreApplication a(argc, argv);
return a.exec();
}

View File

@ -8,7 +8,7 @@
#include <fstream>
#include <QTextStream>
#include "qt_readxml.h"
int mainfun(const QString &CIMFile)
int mainfun(const QString &CIMFile)//CIMFile是文件路径
{
std::cout<<"parseing "<<CIMFile.toLocal8Bit().data()<<std::endl;
QFile file(CIMFile);

8
testHasttable/main.cpp Normal file
View File

@ -0,0 +1,8 @@
#include <QCoreApplication>
int main(int argc, char *argv[])
{
QCoreApplication a(argc, argv);
return a.exec();
}

View File

@ -0,0 +1,18 @@
#-------------------------------------------------
#
# Project created by QtCreator 2014-11-21T17:47:12
#
#-------------------------------------------------
QT += core
QT -= gui
TARGET = testHasttable
CONFIG += console
CONFIG -= app_bundle
TEMPLATE = app
SOURCES += main.cpp