#include <sequencer/midi/device_spec.hpp>
#include <fstream>
#include <iostream>
#include <regex>
#include <string>
#include <vector>
Go to the source code of this file.
|
| #define | X(type, name, is_optional) |
| |
| #define X |
( |
|
type, |
|
|
|
name, |
|
|
|
is_optional |
|
) |
| |
Value: { \
entry.name = decltype( entry.name )( std::stoi( match[ 1 ] ) ); \
} \
else \
{ \
if constexpr ( !( is_optional ) ) \
{ \
throw std::runtime_error( "Could not parse '" #name "' in line: " + buffer ); \
} \
}
std::regex get_key_int_regex(const std::string &key)
Definition: device_spec_reader.hpp:16