mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-22 23:05:36 +08:00
59 lines
1.8 KiB
C++
59 lines
1.8 KiB
C++
/* Copyright (C) 2013
|
|
* swift Project Community / Contributors
|
|
*
|
|
* This file is part of swift project. It is subject to the license terms in the LICENSE file found in the top-level
|
|
* directory of this distribution and at http://www.swift-project.org/license.html. No part of Swift Project,
|
|
* including this file, may be copied, modified, propagated, or distributed except according to the terms
|
|
* contained in the LICENSE file.
|
|
*/
|
|
|
|
#include <QCoreApplication>
|
|
#include "sampleschangeobject.h"
|
|
#include "samplesmetadata.h"
|
|
#include "samplescontainer.h"
|
|
#include "samplesjson.h"
|
|
#include "samplesvariant.h"
|
|
#include "samplesperformance.h"
|
|
#include "blackmisc/blackmiscfreefunctions.h"
|
|
#include "blackmisc/pqallquantities.h"
|
|
|
|
using namespace BlackMisc;
|
|
using namespace BlackMiscTest;
|
|
|
|
/*!
|
|
* Sample tests
|
|
*/
|
|
int main(int argc, char *argv[])
|
|
{
|
|
// QCoreApplication a(argc, argv);
|
|
Q_UNUSED(argc);
|
|
Q_UNUSED(argv);
|
|
|
|
BlackMisc::initResources();
|
|
BlackMisc::registerMetadata();
|
|
|
|
do
|
|
{
|
|
qDebug() << "1 .. JSON";
|
|
qDebug() << "2 .. Change object";
|
|
qDebug() << "3 .. Containers";
|
|
qDebug() << "4 .. Metadata";
|
|
qDebug() << "5 .. Variant";
|
|
qDebug() << "6 .. Performance";
|
|
qDebug() << "-----";
|
|
qDebug() << "x .. Bye";
|
|
QTextStream qtin(stdin);
|
|
QString s = qtin.readLine().toLower().trimmed();
|
|
|
|
if (s.startsWith("1")) { CSamplesJson::samples(); }
|
|
else if (s.startsWith("2")) { CSamplesChangeObject::samples(); }
|
|
else if (s.startsWith("3")) { CSamplesContainer::samples(); }
|
|
else if (s.startsWith("4")) { CSamplesMetadata::samples(); }
|
|
else if (s.startsWith("5")) { CSamplesVariant::samples(); }
|
|
else if (s.startsWith("6")) { CSamplesPerformance::samples(); }
|
|
else if (s.startsWith("x")) { break; }
|
|
}
|
|
while (true);
|
|
return 0;
|
|
}
|