30 #include <boost/shared_ptr.hpp>
32 #include "../common/exceptions/WOutOfBounds.h"
33 #include "WEEG2Segment.h"
34 #include "WEEGValueMatrix.h"
35 #include "WRecording.h"
36 #include "exceptions/WDHException.h"
37 #include "io/WPagerEEG.h"
40 : m_segmentID( segmentID ),
45 throw WDHException( std::string(
"Couldn't construct new EEG segment: pager invalid" ) );
50 std::ostringstream stream;
51 stream <<
"The EEG has no segment number " <<
m_segmentID;
58 throw WDHException( std::string(
"Couldn't construct new EEG segment: invalid number of samples" ) );