This GitLab instance reached the end of its service life. It won't be possible to create new users or projects.

Please read the deprecation notice for more information concerning the deprecation timeline

Visit migration.git.tu-berlin.de (internal network only) to import your old projects to the new GitLab platform 📥

main.cpp 875 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49
/**
* \file main.cpp
*
* \brief Just the main file ...
*
* \author Henrik von Coler
*
* \date $Date: 2019/04/15 $
*
*/


#include<iostream>
#include<stdlib.h>
#include<unistd.h>

#include"yamlman.h"
#include"waveshaper.h"

using std::cout;
using std::endl;

int main(int argc, char *argv[]){

    if (argc < 3)
        cout << "Need config file to start!" << endl;

    else{

        // process command line arguments
        std::string configfile;

        for (int i = 1; i < argc; i++)
        {
            if (i + 1 != argc)
            {
                if (strcmp(argv[i], "-c") == 0)
                {
                    configfile = argv[i + 1];
                    i++;
                }
            }
        }

        // initialize objects
        YamlMan *yaml_manager = new YamlMan(configfile);
        Waveshaper *w = new Waveshaper(yaml_manager);
    }
}