3
Copyright (C) 1999 Emmeran Seehuber
6
This program is free software; you can redistribute it and/or modify
7
it under the terms of the GNU General Public License as published by
8
the Free Software Foundation; either version 2 of the License, or
9
(at your option) any later version.
11
This program is distributed in the hope that it will be useful,
12
but WITHOUT ANY WARRANTY; without even the implied warranty of
13
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
GNU General Public License for more details.
16
You should have received a copy of the GNU General Public License
17
along with this program; if not, write to the Free Software
18
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
41
This class does the mapping of the
47
Reads in the mapfile pszFileName.
48
Returns TRUE, if successfull.
50
bool readMap(const char* pszFileName);
52
Maps the given message according to
53
the actual read configuration.
55
void mapMsg(Byte* msg);
59
Parses a configuration line.
61
void parseLine(char* pszLine, const char* pszConfigFile, int nConfigLine );
64
Gets the next word out of the line. throws
65
the exception CEOutOfLine, if there is no
66
more word in the line.
68
A word consists of all but \0, spacecharacter, ';' and
71
pszLine is the pointer to the start of the
72
line. This function modifies the pointer.
73
pszWord is the pointer to the found word.
75
bool getNextWord(char*& pszLine, char*& pszWord);
79
For each channel one instance of this structure
80
exists in the channelMaps. It holds the mapping information
96
typedef std::map<int,ChannelRemap> ChannelRemapMap;
97
ChannelRemapMap channelRemaps;
98
typedef std::map<int,PitchRemap> PitchRemapMap;
99
PitchRemapMap pitchRemaps;
101
typedef std::map<int,ChannelMaps> ChannelMapsMap;
102
ChannelMapsMap channelMaps;