File: EventConverter.h

package info (click to toggle)
libgdf 0.1.3-11.1
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 1,348 kB
  • sloc: cpp: 7,096; makefile: 61; sh: 49
file content (37 lines) | stat: -rw-r--r-- 1,356 bytes parent folder | download | duplicates (2)
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
//
// This file is part of libGDF.
//
// libGDF is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as
// published by the Free Software Foundation, either version 3 of
// the License, or (at your option) any later version.
//
// libGDF is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
// along with libGDF.  If not, see <http://www.gnu.org/licenses/>.
//
// Copyright 2010 Christoph Eibel

#ifndef __EVENTCONVERTER_H_INCLUDED__
#define __EVENTCONVERTER_H_INCLUDED__

#include "EventHeader.h"
#include "Exceptions.h"

#include <vector>

namespace gdf
{
    //-------------------------------------------------------------------------
    /// @brief converts a vector of mode 1 events into mode 3 events
    ///        using the flag 0x8000 which marks the type of mode 1 stop events
    /// @throws general if events could not be converted
    std::vector<Mode3Event> convertMode1EventsIntoMode3Events (std::vector<Mode1Event>
                                                               const& mode_1_events);
}

#endif