mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-08-13 04:55:44 +08:00
Ref T365, samples for addon/fsx config files
This commit is contained in:
33
samples/blackmiscsim/samplesp3d.cpp
Normal file
33
samples/blackmiscsim/samplesp3d.cpp
Normal file
@@ -0,0 +1,33 @@
|
||||
/* Copyright (C) 2018
|
||||
* 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.
|
||||
*/
|
||||
|
||||
//! \file
|
||||
//! \ingroup sampleblackmiscsim
|
||||
|
||||
#include "samplesp3d.h"
|
||||
#include "blackmisc/simulation/fscommon/fscommonutil.h"
|
||||
#include "blackmisc/stringutils.h"
|
||||
#include <QTextStream>
|
||||
|
||||
using namespace BlackMisc::Simulation::FsCommon;
|
||||
|
||||
namespace BlackSample
|
||||
{
|
||||
void CSamplesP3D::samplesMisc(QTextStream &streamOut)
|
||||
{
|
||||
const QSet<QString> configFiles = CFsCommonUtil::findP3dAddOnConfigFiles("v4");
|
||||
streamOut << BlackMisc::joinStringSet(configFiles, ", ") << endl;
|
||||
|
||||
const QSet<QString> addOnPaths = CFsCommonUtil::allP3dAddOnPaths(configFiles.toList(), false);
|
||||
streamOut << BlackMisc::joinStringSet(addOnPaths, ", ") << endl;
|
||||
|
||||
const QSet<QString> simObjectPaths = CFsCommonUtil::fsxSimObjectsPaths("B:/fsx.cfg", false);
|
||||
streamOut << BlackMisc::joinStringSet(simObjectPaths, ", ") << endl;
|
||||
}
|
||||
} // namespace
|
||||
Reference in New Issue
Block a user