forked from Flowee/registry
Start
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
# This file is part of the Flowee project
|
||||
# Copyright (C) 2025 Tom Zander <tom@flowee.org>
|
||||
#
|
||||
# This program is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation, either version 3 of the License, or
|
||||
# (at your option) any later version.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
||||
set(CMAKE_AUTOMOC ON)
|
||||
set(CMAKE_AUTORCC ON)
|
||||
|
||||
add_executable(processor
|
||||
main.cpp
|
||||
Processor.h Processor.cpp
|
||||
)
|
||||
target_compile_definitions(processor PRIVATE LOG_DEFAULT_SECTION=40000)
|
||||
target_link_libraries(processor
|
||||
flowee_utils
|
||||
Qt6::Core
|
||||
)
|
||||
install(PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/processor DESTINATION ${CMAKE_BINARY_DIR}/bin)
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
#include "Processor.h"
|
||||
|
||||
Processor::Processor(const QString &inDir, const QString &outDir)
|
||||
: m_inDir(inDir),
|
||||
m_outDir(outDir)
|
||||
{
|
||||
}
|
||||
|
||||
int Processor::run()
|
||||
{
|
||||
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
#ifndef PROCESSOR_H
|
||||
#define PROCESSOR_H
|
||||
|
||||
#include <QString>
|
||||
|
||||
|
||||
class Processor
|
||||
{
|
||||
public:
|
||||
Processor(const QString &inDir, const QString &outDir);
|
||||
|
||||
int run();
|
||||
|
||||
private:
|
||||
const QString m_inDir, m_outDir;
|
||||
};
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,19 @@
|
||||
#include "Processor.h"
|
||||
|
||||
#include <QCommandLineParser>
|
||||
#include <QCoreApplication>
|
||||
|
||||
int main(int x, char **y) {
|
||||
QCoreApplication app(x, y);
|
||||
QCommandLineParser parser;
|
||||
parser.addHelpOption();
|
||||
parser.addVersionOption();
|
||||
parser.setApplicationDescription("Processor for the cashing BCM-Registry");
|
||||
parser.parse(app.arguments());
|
||||
auto args = parser.positionalArguments();
|
||||
if (args.size() != 2) {
|
||||
return 1;
|
||||
}
|
||||
Processor processor(args.at(0), args.at(1));
|
||||
return processor.run();
|
||||
}
|
||||
Reference in New Issue
Block a user