src/Configuration.h
author František Kučera <franta-hg@frantovo.cz>
Tue, 06 Oct 2020 16:55:22 +0200
branchv_0
changeset 10 ded44e94147c
parent 8 8ef1980db907
child 11 07247893054e
permissions -rw-r--r--
add --jack-connect-to-port and --required-jack-connections options
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
8
8ef1980db907 configurable JACK client name
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
     1
/**
8ef1980db907 configurable JACK client name
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
     2
 * Relational pipes
8ef1980db907 configurable JACK client name
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
     3
 * Copyright © 2020 František Kučera (Frantovo.cz, GlobalCode.info)
8ef1980db907 configurable JACK client name
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
     4
 *
8ef1980db907 configurable JACK client name
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
     5
 * This program is free software: you can redistribute it and/or modify
8ef1980db907 configurable JACK client name
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
     6
 * it under the terms of the GNU General Public License as published by
8ef1980db907 configurable JACK client name
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
     7
 * the Free Software Foundation, version 3 of the License.
8ef1980db907 configurable JACK client name
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
     8
 *
8ef1980db907 configurable JACK client name
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
     9
 * This program is distributed in the hope that it will be useful,
8ef1980db907 configurable JACK client name
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    10
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
8ef1980db907 configurable JACK client name
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    11
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
8ef1980db907 configurable JACK client name
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    12
 * GNU General Public License for more details.
8ef1980db907 configurable JACK client name
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    13
 *
8ef1980db907 configurable JACK client name
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    14
 * You should have received a copy of the GNU General Public License
8ef1980db907 configurable JACK client name
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    15
 * along with this program. If not, see <http://www.gnu.org/licenses/>.
8ef1980db907 configurable JACK client name
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    16
 */
8ef1980db907 configurable JACK client name
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    17
#pragma once
8ef1980db907 configurable JACK client name
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    18
8ef1980db907 configurable JACK client name
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    19
#include <vector>
8ef1980db907 configurable JACK client name
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    20
#include <iostream>
8ef1980db907 configurable JACK client name
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    21
8ef1980db907 configurable JACK client name
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    22
#include <relpipe/common/type/typedefs.h>
8ef1980db907 configurable JACK client name
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    23
8ef1980db907 configurable JACK client name
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    24
8ef1980db907 configurable JACK client name
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    25
namespace relpipe {
8ef1980db907 configurable JACK client name
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    26
namespace in {
8ef1980db907 configurable JACK client name
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    27
namespace jack {
8ef1980db907 configurable JACK client name
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    28
8ef1980db907 configurable JACK client name
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    29
class Configuration {
8ef1980db907 configurable JACK client name
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    30
public:
8ef1980db907 configurable JACK client name
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    31
	relpipe::common::type::StringX jackClientName = L"relpipe-in-jack";
10
ded44e94147c add --jack-connect-to-port and --required-jack-connections options
František Kučera <franta-hg@frantovo.cz>
parents: 8
diff changeset
    32
	std::vector<relpipe::common::type::StringX> portsToConnect;
ded44e94147c add --jack-connect-to-port and --required-jack-connections options
František Kučera <franta-hg@frantovo.cz>
parents: 8
diff changeset
    33
	int requiredJackConnections = 0;
8
8ef1980db907 configurable JACK client name
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    34
8ef1980db907 configurable JACK client name
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    35
	virtual ~Configuration() {
8ef1980db907 configurable JACK client name
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    36
	}
8ef1980db907 configurable JACK client name
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    37
};
8ef1980db907 configurable JACK client name
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    38
8ef1980db907 configurable JACK client name
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    39
}
8ef1980db907 configurable JACK client name
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    40
}
10
ded44e94147c add --jack-connect-to-port and --required-jack-connections options
František Kučera <franta-hg@frantovo.cz>
parents: 8
diff changeset
    41
}