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 📥

yamlman.h 1.09 KB
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 50 51 52 53 54 55 56 57 58 59 60 61 62 63
/**
 * \file yamlman.h
 * \class YamlMan
 *
 * \brief Class which parses YAML files for parameters.
 *
 * YamlMan also keeps the parameter settings and offers
 * getters for each, individually.
 *
 * \author Henrik von Coler
 *
 * \version $Revision: 0.5 $
 *
 * \date $Date: 2016/08/18$
 *
 */

#ifndef YAMLMAN_H
#define YAMLMAN_H

#include<yaml-cpp/yaml.h>
#include<iostream>
#include<string.h>

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

class YamlMan
{

private:


    /// \brief port
    /// The OSC port to be used for receiving messages
    int port;

    /// \brief path
    /// The OSC path used for the parameter
    std::string path;

public:

    /// \brief YamlMan
    ///         Constructor
    /// \param filepath The path of the config file (*.yml)
    YamlMan(std::string filepath);

    /// \brief return_port
    /// \return The OSC port to be used
    int return_port();

    /// \brief return_path
    ///         Returns the OSC path used
    ///         to change the gain of the signal.
    ///
    /// \return The OSC path.
    string return_path();

};

#endif // YAMLMAN_H