#include "cmlib_private_config.hpp" #include #include #include #include #include namespace MF = myx::filesystem; // Переменные для защиты экземпляра класса MF::PathsMT std::atomic< MF::PathsMT* > MF::PathsMT::mInstance; std::mutex MF::PathsMT::mMutex; int main( int argc, char** argv ) { (void)argc; (void)argv; QCoreApplication::setApplicationName( QStringLiteral( CMLIB_PROJECT_NAME ) ); MF::PathsMT* pathsMT = MF::PathsMT::instance(); MF::Paths* paths = MF::Paths::instance(); pathsMT->init( QStringLiteral( CMLIB_PROJECT_NAME ), QStringLiteral( "conf" ) ); pathsMT->findConfigFile( QStringLiteral( "test" ) ); qDebug() << pathsMT->systemLogDirectory(); qDebug() << pathsMT->systemConfigDirectory(); paths->init( QStringLiteral( CMLIB_PROJECT_NAME ), QStringLiteral( "conf" ) ); paths->findConfigFile( QStringLiteral( "test" ) ); qDebug() << paths->systemConstDataDirectory(); qDebug() << paths->configFileName(); return( 0 ); }