mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-07-13 14:07:23 +02:00
38 lines
No EOL
901 B
C++
38 lines
No EOL
901 B
C++
//
|
|
// main.cpp
|
|
// assignment-client
|
|
//
|
|
// Created by Stephen Birarda on 8/22/13.
|
|
// Copyright (c) 2013 High Fidelity, Inc. All rights reserved.
|
|
//
|
|
|
|
#include <Logging.h>
|
|
#include <SharedUtil.h>
|
|
|
|
#include "Assignment.h"
|
|
#include "AssignmentClient.h"
|
|
#include "AssignmentClientMonitor.h"
|
|
|
|
int main(int argc, char* argv[]) {
|
|
|
|
setvbuf(stdout, NULL, _IOLBF, 0);
|
|
|
|
// use the verbose message handler in Logging
|
|
qInstallMessageHandler(Logging::verboseMessageHandler);
|
|
|
|
const char* numForksString = getCmdOption(argc, (const char**)argv, NUM_FORKS_PARAMETER);
|
|
|
|
int numForks = 0;
|
|
|
|
if (numForksString) {
|
|
numForks = atoi(numForksString);
|
|
}
|
|
|
|
if (numForks) {
|
|
AssignmentClientMonitor monitor(argc, argv, numForks);
|
|
return monitor.exec();
|
|
} else {
|
|
AssignmentClient client(argc, argv);
|
|
return client.exec();
|
|
}
|
|
} |