~ubuntu-branches/ubuntu/raring/openwalnut/raring

« back to all changes in this revision

Viewing changes to src/core/dataHandler/io/WPagerEEG.cpp

  • Committer: Package Import Robot
  • Author(s): Sebastian Eichelbaum
  • Date: 2012-12-12 11:26:32 UTC
  • mfrom: (3.1.1 sid)
  • Revision ID: package-import@ubuntu.com-20121212112632-xhiuwkxuz5h0idkh
Tags: 1.3.1+hg5849-1
* Minor changes compared to 1.3.0 but included several bug fixes.
* See http://www.openwalnut.org/versions/4

Show diffs side-by-side

added added

removed removed

Lines of Context:
35
35
 
36
36
std::string WPagerEEG::getFileName() const
37
37
{
38
 
    return m_fileName;
39
 
}
40
 
 
41
 
WPagerEEG::WPagerEEG( std::string fileName )
42
 
    : m_fileName( fileName )
43
 
{
44
 
    if( !fileExists( m_fileName ) )
 
38
    return getFilename();
 
39
}
 
40
 
 
41
std::string WPagerEEG::getFilename() const
 
42
{
 
43
    return m_filename;
 
44
}
 
45
 
 
46
WPagerEEG::WPagerEEG( std::string filename )
 
47
    : m_filename( filename )
 
48
{
 
49
    if( !fileExists( m_filename ) )
45
50
    {
46
 
        throw WDHNoSuchFile( m_fileName + " doesn't exist" );
 
51
        throw WDHNoSuchFile( m_filename + " doesn't exist" );
47
52
    }
48
53
}