1.重新组织了文件。
2.准备试试把所有元素都读入内存中。 Signed-off-by: facat@lab.com <facat@lab.com>
This commit is contained in:
parent
5d44332c13
commit
3a555bd2c1
|
|
@ -1,3 +1,6 @@
|
||||||
*.pro.user*
|
*.pro.user*
|
||||||
*.bak
|
*.bak
|
||||||
*.orig
|
*.orig
|
||||||
|
debug
|
||||||
|
release
|
||||||
|
Makefile*
|
||||||
|
|
@ -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
|
|
||||||
|
|
@ -0,0 +1,5 @@
|
||||||
|
TEMPLATE = subdirs
|
||||||
|
|
||||||
|
SUBDIRS=cimparser \
|
||||||
|
core \
|
||||||
|
testHasttable
|
||||||
|
|
@ -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
|
||||||
|
|
@ -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
|
||||||
|
|
@ -0,0 +1,8 @@
|
||||||
|
#include <QCoreApplication>
|
||||||
|
|
||||||
|
int main(int argc, char *argv[])
|
||||||
|
{
|
||||||
|
QCoreApplication a(argc, argv);
|
||||||
|
|
||||||
|
return a.exec();
|
||||||
|
}
|
||||||
|
|
@ -8,7 +8,7 @@
|
||||||
#include <fstream>
|
#include <fstream>
|
||||||
#include <QTextStream>
|
#include <QTextStream>
|
||||||
#include "qt_readxml.h"
|
#include "qt_readxml.h"
|
||||||
int mainfun(const QString &CIMFile)
|
int mainfun(const QString &CIMFile)//CIMFile是文件路径
|
||||||
{
|
{
|
||||||
std::cout<<"parseing "<<CIMFile.toLocal8Bit().data()<<std::endl;
|
std::cout<<"parseing "<<CIMFile.toLocal8Bit().data()<<std::endl;
|
||||||
QFile file(CIMFile);
|
QFile file(CIMFile);
|
||||||
|
|
@ -0,0 +1,8 @@
|
||||||
|
#include <QCoreApplication>
|
||||||
|
|
||||||
|
int main(int argc, char *argv[])
|
||||||
|
{
|
||||||
|
QCoreApplication a(argc, argv);
|
||||||
|
|
||||||
|
return a.exec();
|
||||||
|
}
|
||||||
|
|
@ -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
|
||||||
Loading…
Reference in New Issue